tests: run-tests: Print more details about NameError

If encountering a NameError, print the entire traceback so that
it's actually debuggable.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
Johannes Berg 2015-11-27 19:54:58 +01:00 committed by Jouni Malinen
parent b6f17f2f5c
commit 1a4f18d8f4

View file

@ -453,6 +453,11 @@ def main():
except HwsimSkip, e:
logger.info("Skip test case: %s" % e)
result = "SKIP"
except NameError, e:
import traceback
logger.info(e)
traceback.print_exc()
result = "FAIL"
except Exception, e:
logger.info(e)
if args.loglevel == logging.WARNING: