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.
This commit is contained in:
parent
a73f005e00
commit
b9dd6a5bb4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user