Print unittest description in case it's available
This commit is contained in:
3
tests.py
3
tests.py
@ -94,6 +94,9 @@ def main():
|
|||||||
logging.error("Unexpected message: %s" % (m))
|
logging.error("Unexpected message: %s" % (m))
|
||||||
this_failed = True
|
this_failed = True
|
||||||
if this_failed:
|
if this_failed:
|
||||||
|
if 'test' in unittest and 'description' in unittest['test']:
|
||||||
|
logging.error("Unittest %s failed: %s" % (fn, unittest['test']['description']))
|
||||||
|
else:
|
||||||
logging.error("Unittest %s failed" % (fn))
|
logging.error("Unittest %s failed" % (fn))
|
||||||
errors = errors + 1
|
errors = errors + 1
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user