mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
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:
parent
b6f17f2f5c
commit
1a4f18d8f4
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user