aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests
diff options
context:
space:
mode:
authorGravatar Matt Kwong <mattkwong@google.com>2016-11-09 15:53:23 -0800
committerGravatar Matt Kwong <mattkwong@google.com>2016-11-09 15:53:23 -0800
commitaa6c94cb26cf7b5301da3adbee068e6ae10fee19 (patch)
treebd8da9786e89948e9be495fa9b1360efb77c6a5c /tools/run_tests
parentfe1bcd9915f662dff37e58ecd0d4bbf7b7fba795 (diff)
Fix skipped tests not showing up in Jenkins UI
Diffstat (limited to 'tools/run_tests')
-rwxr-xr-xtools/run_tests/run_tests_matrix.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/run_tests/run_tests_matrix.py b/tools/run_tests/run_tests_matrix.py
index 25fbe8110f..544b6bc57d 100755
--- a/tools/run_tests/run_tests_matrix.py
+++ b/tools/run_tests/run_tests_matrix.py
@@ -301,7 +301,9 @@ if __name__ == "__main__":
print('No tests will be skipped.')
else:
print('These tests will be skipped:')
- skipped_jobs = [job for job in jobs if job not in relevant_jobs]
+ skipped_jobs = list(set(jobs) - set(relevant_jobs))
+ # Sort by shortnames to make printing of skipped tests consistent
+ skipped_jobs.sort(key=lambda job: job.shortname)
for job in list(skipped_jobs):
print(' %s' % job.shortname)
jobs = relevant_jobs