]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Print traceback if test fails
authorJanusz Dziedzic <janusz.dziedzic@tieto.com>
Thu, 7 Apr 2016 05:38:10 +0000 (07:38 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 24 Apr 2016 17:16:30 +0000 (20:16 +0300)
This is useful in case we hit a problem in test code.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
tests/hwsim/run-tests.py

index ec328127304e90a175f5c2c93911215820847fac..1cb86b74ebd2ec6a5ff0ec574944794c6ab77651 100755 (executable)
@@ -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"