From b9dd6a5bb4556f848b016dd61b399d07d83a21e0 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Sat, 31 Mar 2018 09:34:01 -0500 Subject: [PATCH] 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. --- tests/run-tests | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/run-tests b/tests/run-tests index 4cf16131f5..f28376ba64 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