From: Luca Boccassi Date: Sat, 11 Nov 2023 20:29:03 +0000 (+0000) Subject: test: sort files in generate-sym-test.py X-Git-Tag: v255-rc2~43 X-Git-Url: http://git-history.diyao.me/?a=commitdiff_plain;h=22f62b8917a7ca9807e2c497968da5295109565e;p=systemd%2F.git test: sort files in generate-sym-test.py The test binaries are different depending on the filesystem, due to os.walk(). Sort the input before iterating on it to make it stable. --- diff --git a/src/test/generate-sym-test.py b/src/test/generate-sym-test.py index 54e3c5fa10..e97b6bbbd5 100755 --- a/src/test/generate-sym-test.py +++ b/src/test/generate-sym-test.py @@ -65,7 +65,7 @@ with open(sys.argv[1], "r") as f: print(''' {} }, symbols_from_source[] = {''') -for dirpath, _, filenames in os.walk(sys.argv[2]): +for dirpath, _, filenames in sorted(os.walk(sys.argv[2])): for filename in filenames: if not filename.endswith(".c") and not filename.endswith(".h"): continue