From 0063bd35d79e952aa964d7338869d55b91ea4a40 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 12 Jan 2021 19:15:26 -0500 Subject: gen_data.py: sort files when generating mesondata The current way this works is chaos since the tool might return files in any order and thus shuffle around the order of embedded files. This results in big diffs that cannot be easily reviewed. Also regenerate the data according to the, going forward, canonical ordering algorithm. --- 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 2b84e9c05..4c1682302 100755 --- a/tools/gen_data.py +++ b/tools/gen_data.py @@ -48,7 +48,7 @@ def main() -> int: data_files: T.List[DataFile] = [] for d in data_dirs: - for p in d.iterdir(): + for p in sorted(d.iterdir()): data_files += [DataFile(p, mesonbuild_dir)] print(f'Found {len(data_files)} data files') -- cgit v1.2.3