1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-28 05:57:33 +03:00

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.
This commit is contained in:
Luca Boccassi 2023-11-11 20:29:03 +00:00 committed by Yu Watanabe
parent 620788da17
commit 22f62b8917

View File

@ -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