aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-10-26 08:39:32 (GMT)
committerJouni Malinen <j@w1.fi>2014-10-26 08:39:32 (GMT)
commitac69c332974e69690abbcd9ae54d59635434b55c (patch)
tree2723ebdbc02690a1e966d1ed5ea1d6d5038a5b64 /tests
parent9d3d2dbdcb8b4550a498aabcc8554f2c498ee745 (diff)
downloadhostap-ac69c332974e69690abbcd9ae54d59635434b55c.zip
hostap-ac69c332974e69690abbcd9ae54d59635434b55c.tar.gz
hostap-ac69c332974e69690abbcd9ae54d59635434b55c.tar.bz2
tests: Print failure exeception if logger output goes to file
This makes it more convenient to determine failure reasons during test case development and VM testing. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests')
-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 ad02160..52cb7f9 100755
--- a/tests/hwsim/run-tests.py
+++ b/tests/hwsim/run-tests.py
@@ -375,6 +375,8 @@ def main():
result = "PASS"
except Exception, e:
logger.info(e)
+ if args.loglevel == logging.WARNING:
+ print "Exception: " + str(e)
result = "FAIL"
for d in dev:
try: