Skip to content

Commit b9dd6a5

Browse files
committed
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.
1 parent a73f005 commit b9dd6a5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/run-tests

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,9 @@ def run_tests(pyb, tests, args, base_path="."):
461461
print("{} tests passed".format(passed_count.value))
462462

463463
if len(skipped_tests.value) > 0:
464-
print("{} tests skipped: {}".format(len(skipped_tests.value), ' '.join(skipped_tests.value)))
464+
print("{} tests skipped: {}".format(len(skipped_tests.value), ' '.join(sorted(skipped_tests.value))))
465465
if len(failed_tests.value) > 0:
466-
print("{} tests failed: {}".format(len(failed_tests.value), ' '.join(failed_tests.value)))
466+
print("{} tests failed: {}".format(len(failed_tests.value), ' '.join(sorted(failed_tests.value))))
467467
return False
468468

469469
# all tests succeeded

0 commit comments

Comments
 (0)