summaryrefslogtreecommitdiff
path: root/tests/run-tests
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2018-03-31 09:34:01 -0500
committerJeff Epler <jepler@gmail.com>2018-03-31 10:38:54 -0500
commitb9dd6a5bb4556f848b016dd61b399d07d83a21e0 (patch)
tree6213a62339213586098b66cc8362fb8c774be02b /tests/run-tests
parenta73f005e0030f014400884a8474181fc9d5464ec (diff)
run-tests: sort skipped and failed tests
.. otherwise the line which reports tests skipped and failed can come in different orders when -j values above 1 are used.
Diffstat (limited to 'tests/run-tests')
-rwxr-xr-xtests/run-tests4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/run-tests b/tests/run-tests
index 4cf16131f..f28376ba6 100755
--- a/tests/run-tests
+++ b/tests/run-tests
@@ -461,9 +461,9 @@ def run_tests(pyb, tests, args, base_path="."):
print("{} tests passed".format(passed_count.value))
if len(skipped_tests.value) > 0:
- print("{} tests skipped: {}".format(len(skipped_tests.value), ' '.join(skipped_tests.value)))
+ print("{} tests skipped: {}".format(len(skipped_tests.value), ' '.join(sorted(skipped_tests.value))))
if len(failed_tests.value) > 0:
- print("{} tests failed: {}".format(len(failed_tests.value), ' '.join(failed_tests.value)))
+ print("{} tests failed: {}".format(len(failed_tests.value), ' '.join(sorted(failed_tests.value))))
return False
# all tests succeeded