Changes in tests/test.py [172a88d:1f3d212]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/test.py
r172a88d r1f3d212 257 257 258 258 # update output based on current action 259 result_ key, result_txt = TestResult.toString( retcode, duration )259 result_txt = TestResult.toString( retcode, duration ) 260 260 261 261 #print result with error if needed … … 265 265 text = text + '\n' + error 266 266 267 return retcode == TestResult.SUCCESS, result_key,text267 return retcode == TestResult.SUCCESS, text 268 268 except KeyboardInterrupt: 269 return False, 'keybrd',""269 return False, "" 270 270 # except Exception as ex: 271 271 # print("Unexpected error in worker thread running {}: {}".format(t.target(), ex), file=sys.stderr) … … 283 283 284 284 failed = False 285 rescnts = { 'pass': 0, 'fail': 0, 'time': 0, 'keybrd': 0 }286 other = 0287 285 288 286 # for each test to run … … 296 294 ) 297 295 298 for i, (succ, code, txt) in enumerate(timed(results, timeout = settings.timeout.total), 1) : 299 if code in rescnts.keys(): 300 rescnts[code] += 1 301 else: 302 other += 1 303 296 for i, (succ, txt) in enumerate(timed(results, timeout = settings.timeout.total), 1) : 304 297 if not succ : 305 298 failed = True … … 326 319 # clean the workspace 327 320 make('clean', output_file=subprocess.DEVNULL, error=subprocess.DEVNULL) 328 329 print("{} passes, {} failures, {} timeouts, {} cancelled, {} other".format(rescnts['pass'], rescnts['fail'], rescnts['time'], rescnts['keybrd'], other))330 321 331 322 return failed … … 452 443 failed = run_tests(local_tests, options.jobs) 453 444 if failed: 445 result = 1 454 446 if not settings.continue_: 455 447 break
Note:
See TracChangeset
for help on using the changeset viewer.