]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test/run-unit-tests: sort the test cases we're executing
authorRoss Burton <ross.burton@arm.com>
Mon, 11 Mar 2024 13:59:55 +0000 (13:59 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 11 Mar 2024 18:11:30 +0000 (18:11 +0000)
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 <ross.burton@arm.com>
test/run-unit-tests.py

index e6f26c2821928bbec0f23f96388a1090a023d9a4..1b0329644b85b28dd16ef92b18ba976c5aa254a3 100755 (executable)
@@ -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)