Print traceback in case of exception
The text of the exception is pretty much useless alone, this makes it print the entire traceback.
This commit is contained in:
parent
0dd2ef2f1d
commit
eadcca6da7
@ -207,6 +207,7 @@ def run_test(testname):
|
|||||||
print (colorize('Test passed', COLOR_GREEN))
|
print (colorize('Test passed', COLOR_GREEN))
|
||||||
return True
|
return True
|
||||||
except Exception as inst:
|
except Exception as inst:
|
||||||
|
traceback.print_exc(file=sys.stdout)
|
||||||
print (inst)
|
print (inst)
|
||||||
pass
|
pass
|
||||||
print (colorize('ERROR', COLOR_RED))
|
print (colorize('ERROR', COLOR_RED))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user