From: Ross Burton Date: Mon, 11 Mar 2024 13:59:55 +0000 (+0000) Subject: test/run-unit-tests: sort the test cases we're executing X-Git-Tag: v256-rc1~574 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a052a718aa83440d728556455fd42669a88a4dd;p=thirdparty%2Fsystemd.git test/run-unit-tests: sort the test cases we're executing When reading test logs manually it is a lot easier when the tests are sorted by name rather than by disk order. Signed-off-by: Ross Burton --- diff --git a/test/run-unit-tests.py b/test/run-unit-tests.py index e6f26c28219..1b0329644b8 100755 --- a/test/run-unit-tests.py +++ b/test/run-unit-tests.py @@ -42,7 +42,7 @@ if not opts.artifact_directory and os.getenv('ARTIFACT_DIRECTORY'): opts.artifact_directory = os.getenv('ARTIFACT_DIRECTORY') total.total = len(tests) -for test in tests: +for test in sorted(tests): name = os.path.basename(test) ex = subprocess.run(test, stdin=subprocess.DEVNULL, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)