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:
Janusz Dziedzic 2016-04-07 07:38:10 +02:00 committed by Jouni Malinen
parent 5148b392ab
commit 2147b3a7f8

View file

@ -459,7 +459,9 @@ def main():
traceback.print_exc()
result = "FAIL"
except Exception, e:
import traceback
logger.info(e)
traceback.print_exc()
if args.loglevel == logging.WARNING:
print "Exception: " + str(e)
result = "FAIL"