Skip to content

Commit dc64594

Browse files
committed
[benchmark][generate-harness] When generating the CMakeLists.txt file for the harness, sort the single-source files to give a deterministic ordering.
1 parent 6c97be8 commit dc64594

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benchmark/scripts/generate_harness/generate_harness.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737

3838
if __name__ == '__main__':
3939
# CMakeList single-source
40-
tests = [os.path.basename(x).split('.')[0]
41-
for x in glob.glob(os.path.join(single_source_dir, '*.swift'))]
40+
test_files = glob.glob(os.path.join(single_source_dir, '*.swift'))
41+
tests = sorted(os.path.basename(x).split('.')[0] for x in test_files)
4242

4343
# CMakeList multi-source
4444
class MultiSourceBench(object):

0 commit comments

Comments
 (0)