tests: Print traceback if test fails
This is useful in case we hit a problem in test code. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
This commit is contained in:
parent
5148b392ab
commit
2147b3a7f8
1 changed files with 2 additions and 0 deletions
|
@ -459,7 +459,9 @@ def main():
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
result = "FAIL"
|
result = "FAIL"
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
|
import traceback
|
||||||
logger.info(e)
|
logger.info(e)
|
||||||
|
traceback.print_exc()
|
||||||
if args.loglevel == logging.WARNING:
|
if args.loglevel == logging.WARNING:
|
||||||
print "Exception: " + str(e)
|
print "Exception: " + str(e)
|
||||||
result = "FAIL"
|
result = "FAIL"
|
||||||
|
|
Loading…
Reference in a new issue