From: Janusz Dziedzic Date: Thu, 7 Apr 2016 05:38:10 +0000 (+0200) Subject: tests: Print traceback if test fails X-Git-Tag: hostap_2_6~543 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2147b3a7f8ce4dbb3cb5a85efd012faa3f3b6c18;p=thirdparty%2Fhostap.git tests: Print traceback if test fails This is useful in case we hit a problem in test code. Signed-off-by: Janusz Dziedzic --- diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py index ec3281273..1cb86b74e 100755 --- a/tests/hwsim/run-tests.py +++ b/tests/hwsim/run-tests.py @@ -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"