Skip to content

Commit 55fb05f

Browse files
committed
[generate] Move generate_empty_interactive_sample_ans to later step
1 parent c54e5f8 commit 55fb05f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

bin/generate.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,8 +1171,6 @@ def add_testdata_to_cache():
11711171
# Step 2: generate .in if needed (and possible other files)
11721172
if not generate_from_rule():
11731173
return
1174-
if not generate_empty_interactive_sample_ans():
1175-
return
11761174

11771175
if infile.is_file():
11781176
# Step 3: check .in if needed
@@ -1192,7 +1190,11 @@ def add_testdata_to_cache():
11921190
if not generate_visualization():
11931191
return
11941192

1195-
# Step 7: copy all generated files
1193+
# Step 7: for interactive and/or multi-pass samples, generate empty .ans if it does not exist
1194+
if not generate_empty_interactive_sample_ans():
1195+
return
1196+
1197+
# Step 8: copy all generated files
11961198
copy_generated()
11971199

11981200
# Note that we set this to true even if not all files were overwritten -- a different log/warning message will be displayed for that.

0 commit comments

Comments
 (0)