Browse Source

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>
Jouni Malinen 10 years ago
parent
commit
ac69c33297
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tests/hwsim/run-tests.py

+ 2 - 0
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: