aboutsummaryrefslogtreecommitdiff
path: root/run_tests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-03-25 18:38:24 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2015-03-25 18:38:24 +0200
commit9287d7e2c5e9245189415314ee48566badc228b9 (patch)
tree1b5f620e7d6e6270ab844435c10ce7791037e3e7 /run_tests.py
parent47138efe5da2d9b083b062ca10efd4c197771daf (diff)
downloadmeson-9287d7e2c5e9245189415314ee48566badc228b9.zip
meson-9287d7e2c5e9245189415314ee48566badc228b9.tar.gz
meson-9287d7e2c5e9245189415314ee48566badc228b9.tar.bz2
Write out padding zeroes to numbers because Jenkins is too stupid to do logical order sorting.
Diffstat (limited to 'run_tests.py')
-rwxr-xr-xrun_tests.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/run_tests.py b/run_tests.py
index 0e364c5..258f8d3 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -257,7 +257,11 @@ def run_tests():
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],
+ # Jenkins screws us over by automatically sorting test cases by name
+ # and getting it wrong by not doing logical number sorting.
+ (testnum, testbase) = os.path.split(t)[-1].split(' ', 1)
+ testname = '%.3d %s' % (int(testnum), testbase)
+ current_test = ET.SubElement(current_suite, 'testcase', {'name' : testname,
'classname' : name})
if msg != '':
ET.SubElement(current_test, 'failure', {'message' : msg})