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-12 12:54:23 +09:00
committed by Yu Watanabe
parent 620788da17
commit 22f62b8917
+1 -1
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