From 99a955491d59da1b9ff7af055f8f942bac0b681a Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Wed, 25 Mar 2015 18:07:58 +0200 Subject: [PATCH] Minor fixes. --- run_tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/run_tests.py b/run_tests.py index dd4dacc18..34ecba52e 100755 --- a/run_tests.py +++ b/run_tests.py @@ -252,15 +252,15 @@ def run_tests(): if len(test_cases) == 0: print('\nNot running %s tests.\n' % name) else: - current_suite = ET.SubElement(junit_root, 'testsuite', {'name' : name}) + current_suite = ET.SubElement(junit_root, 'testsuite', {'name' : name, 'tests' : str(len(test_cases))}) print('\nRunning %s tests.\n' % name) for t in test_cases: (msg, stdo, stde) = run_test(t, name != 'failing') log_text_file(logfile, t, msg, stdo, stde) - current_test = ET.SubElement(current_suite, 'testcase', {'name' : os.path.split(t)[-1]}) + current_test = ET.SubElement(current_suite, 'testcase', {'name' : os.path.split(t)[-1], + 'classname' : 'dummy'}) if msg != '': - failure = ET.SubElement(current_test, 'failure') - failure.text = msg + ET.SubElement(current_test, 'failure', {'message' : msg}) stdoel = ET.SubElement(current_test, 'system-out') stdoel.text = stdo stdeel = ET.SubElement(current_test, 'system-err')