From: Jouni Malinen Date: Sun, 26 Oct 2014 08:39:32 +0000 (+0200) Subject: tests: Print failure exeception if logger output goes to file X-Git-Tag: hostap_2_4~1228 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac69c332974e69690abbcd9ae54d59635434b55c;p=thirdparty%2Fhostap.git 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 --- 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: