From ac69c332974e69690abbcd9ae54d59635434b55c Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 26 Oct 2014 10:39:32 +0200 Subject: [PATCH] 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 --- 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 ad021606c..52cb7f9da 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: