]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Print failure exeception if logger output goes to file
authorJouni Malinen <j@w1.fi>
Sun, 26 Oct 2014 08:39:32 +0000 (10:39 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 26 Oct 2014 08:39:32 +0000 (10:39 +0200)
This makes it more convenient to determine failure reasons during test
case development and VM testing.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/run-tests.py

index ad021606c4b86f6bb5436520beb6d6e9a3e75a64..52cb7f9da5b4241fa1bc101f54efcb48eac08074 100755 (executable)
@@ -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: