- Timestamp:
- 07/15/20 02:04:41 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tester/tester.py
r995 r1010 234 234 tests_failed = 0 235 235 tests_total = 0 236 dotOK = "" 236 237 for line in fin: 237 238 line = globals.stripEOL(line) … … 278 279 tests_failed += int(not ok) 279 280 tests_total += 1 281 dotOK += '.' if ok else test_name[0] if len(test_name)>0 else '?' 280 282 elif command == "RUNTEST": 281 283 if is_test_active(): … … 288 290 tests_failed += int(not ok) 289 291 tests_total += 1 292 dotOK += '.' if ok else test_name[0] if len(test_name)>0 else '?' 290 293 else: 291 294 raise Exception("Don't know what to do with this line in test file: ", line) 292 295 293 return (tests_failed, tests_total )296 return (tests_failed, tests_total, dotOK) 294 297 295 298 296 299 if __name__ == "__main__": 297 tests_failed, tests_total = main() 298 print("%d / %d failed tests" % (tests_failed, tests_total)) 300 tests_failed, tests_total, dotOK = main() 301 print("TestsDotOK:"+dotOK); 302 #print("%d / %d failed tests" % (tests_failed, tests_total)) 299 303 sys.exit(tests_failed) # return the number of failed tests as exit code ("error level") to shell
Note: See TracChangeset
for help on using the changeset viewer.