From ec931958325cda6282eb55de06ab4a4220fd45aa Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Sun, 13 Mar 2022 19:58:17 +0000 Subject: [PATCH] Print unittest description in case it's available --- tests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests.py b/tests.py index 2d9fc05..aa969ed 100755 --- a/tests.py +++ b/tests.py @@ -94,7 +94,10 @@ def main(): logging.error("Unexpected message: %s" % (m)) this_failed = True if this_failed: - logging.error("Unittest %s failed" % (fn)) + 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)) errors = errors + 1 else: logging.info("Unittest %s passed" % (fn))