aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJanusz Dziedzic <janusz.dziedzic@tieto.com>2016-04-07 05:38:10 (GMT)
committerJouni Malinen <j@w1.fi>2016-04-24 17:16:30 (GMT)
commit2147b3a7f8ce4dbb3cb5a85efd012faa3f3b6c18 (patch)
treed3efe148c082f3e80ff4ff2e050ff8e38f0b029e
parent5148b392ab2e71a0fe9d0ddfea13d4bd3ca79bac (diff)
downloadhostap-2147b3a7f8ce4dbb3cb5a85efd012faa3f3b6c18.zip
hostap-2147b3a7f8ce4dbb3cb5a85efd012faa3f3b6c18.tar.gz
hostap-2147b3a7f8ce4dbb3cb5a85efd012faa3f3b6c18.tar.bz2
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>
-rwxr-xr-xtests/hwsim/run-tests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py
index ec32812..1cb86b7 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"