Parcourir la 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 il y a 10 ans
Parent
commit
ac69c33297
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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: