replace text in files crashes if it finds a directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
TextTest |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
My tests use "copy_test_path" to copy a whole directory structure into the test sandbox.
eg
copy_test_
I want to update the text in one of the files in this directory. Each test has a different copy of this file under a directory with the same name. I tried to use the feature "replace text in files" from the actions menu. I entered the text to replace but didn't know what to write in "File stem(s) to perform replacement in" so I put *. When I ran it, texttest gave this exception:
Test could not be run :
Traceback (most recent call last):
File "/opt/texttest/
method(*args)
File "/opt/texttest/
for line in open(stdFile)
IOError: [Errno 21] Is a directory: '${TEXTTEST_
Changed in texttest: | |
status: | Fix Committed → Fix Released |
Does it work if you run it with "dir_to_copy/*" instead?