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:
parent
9d3d2dbdcb
commit
ac69c33297
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue