From ccb15bc0e988f4e90b67606eaad9443c7ccac918 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Wed, 13 Jan 2021 07:22:32 -0500 Subject: gen_data.py: even more sorting glob.glob() is not sorted, despite using shell-style wildcards, and the documentation does not mention this: https://bugs.python.org/issue21748 Recently, it does start mentioning "Whether or not the results are sorted depends on the file system." which does not really get to the heart of the matter... This is causing fuzz too. --- tools/gen_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/gen_data.py b/tools/gen_data.py index 4c1682302..9affc660f 100755 --- a/tools/gen_data.py +++ b/tools/gen_data.py @@ -43,7 +43,7 @@ def main() -> int: mesonbuild_dir = root_dir / 'mesonbuild' out_file = mesonbuild_dir / 'mesondata.py' - data_dirs = mesonbuild_dir.glob('**/data') + data_dirs = sorted(mesonbuild_dir.glob('**/data')) data_files: T.List[DataFile] = [] -- cgit v1.2.3