Changes in / [b1848a0:e82aa9df]
- File:
-
- 1 edited
-
src/tests/test.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/test.py
rb1848a0 re82aa9df 99 99 return False 100 100 101 # find the test data for a given test name 102 def filterTests(testname) : 103 found = [test for test in allTests if test.name == testname] 104 return (found[0] if len(found) == 1 else Test(testname, testname) ) 105 101 106 ################################################################################ 102 107 # running test functions … … 136 141 if not dry_run and fileContainsOnly(out_file, "make: *** No rule to make target `%s'. Stop." % test.name) : 137 142 retcode = 1; 138 error = "\t\tNo make target for test %s!" % test .name143 error = "\t\tNo make target for test %s!" % test 139 144 sh("rm %s" % out_file, False) 140 145 … … 247 252 # already existing tests and create new info for the new tests 248 253 if options.regenerate_expected : 249 for testname in options.tests : 250 if testname.endswith(".c") or testname.endswith(".cc") or testname.endswith(".cpp") : 251 print('ERROR: "%s", tests are not allowed to end with a C/C++/CFA extension, ignoring it' % testname, file=sys.stderr) 252 else : 253 found = [test for test in allTests if test.name == testname] 254 tests.append( found[0] if len(found) == 1 else Test(testname, testname) ) 254 tests = map(filterTests, options.tests) 255 255 256 256 else :
Note:
See TracChangeset
for help on using the changeset viewer.