[PATCH v2 12/17] tests: print traceback when test failed

Janusz Dziedzic janusz.dziedzic at tieto.com
Wed Apr 6 22:38:10 PDT 2016


This is usefull in case we will hit the
problem in test code.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic at tieto.com>
---
 tests/hwsim/run-tests.py | 2 ++
 1 file changed, 2 insertions(+)

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"
-- 
1.9.1




More information about the Hostap mailing list