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>
This commit is contained in:
Jouni Malinen 2014-10-26 10:39:32 +02:00
parent 9d3d2dbdcb
commit ac69c33297

View file

@ -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: