diff --git a/test/run_tests.py b/test/run_tests.py index 53497f0cafa3df6ac2084a3da6a6c04d356ff0a4..764a2f5c36870ebd88368ea6b0d36eeb8fa9f291 100644 --- a/test/run_tests.py +++ b/test/run_tests.py @@ -33,8 +33,12 @@ for path, folders, files in os.walk("./test_scripts"): exec(code) except Exception as ex: print(bcolors.FAIL) - print("EXCEPTION: " + repr(ex)) - traceback.print_exc() + (_type, value, tb) = sys.exc_info() + + print("EXCEPTION: "+ str(value)) + + print(traceback.format_exc()) + errors.append(filename) print(bcolors.ENDC) sys.stdout.flush()