aboutsummaryrefslogtreecommitdiff
path: root/run_tests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-03-25 18:07:58 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2015-03-25 18:11:34 +0200
commit99a955491d59da1b9ff7af055f8f942bac0b681a (patch)
tree0ba1bc04fdf9549277f690f008f0a989dc67e01e /run_tests.py
parent3a1a3404ba73b082ee4b9ff9c80988b3a67a1895 (diff)
downloadmeson-99a955491d59da1b9ff7af055f8f942bac0b681a.zip
meson-99a955491d59da1b9ff7af055f8f942bac0b681a.tar.gz
meson-99a955491d59da1b9ff7af055f8f942bac0b681a.tar.bz2
Minor fixes.
Diffstat (limited to 'run_tests.py')
-rwxr-xr-xrun_tests.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/run_tests.py b/run_tests.py
index dd4dacc..34ecba5 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')