mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-16 12:08:04 +00:00
Print test exception right away, in case the full test run crashes
This commit is contained in:
@@ -86,6 +86,7 @@ def run(include_long_tests=False, capture_results=False, tests=None, filters=Non
|
|||||||
numFailed += 1
|
numFailed += 1
|
||||||
typ, val, tb = sys.exc_info()
|
typ, val, tb = sys.exc_info()
|
||||||
fails.append((test, t, typ, val, tb, testModule))
|
fails.append((test, t, typ, val, tb, testModule))
|
||||||
|
traceback.print_exception(typ, val, tb)
|
||||||
sys.stdout.write(colored("FAIL\n", color="red"))
|
sys.stdout.write(colored("FAIL\n", color="red"))
|
||||||
else:
|
else:
|
||||||
sys.stdout.write(colored("OK\n", color="green"))
|
sys.stdout.write(colored("OK\n", color="green"))
|
||||||
|
|||||||
Reference in New Issue
Block a user