Skip to content

Commit 5375d2f

Browse files
sbryngelsonclaude
andcommitted
Skip restart roundtrip check during --generate mode
The restart_check block ran unconditionally after golden file generation, doubling wall-clock time for restart-flagged test cases when using ./mfc.sh test --generate. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ad02189 commit 5375d2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

toolchain/mfc/test/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ def _handle_case(case: TestCase, devices: typing.Set[int]):
449449

450450
# Restart roundtrip verification: run to midpoint, restart,
451451
# and compare restarted output against the straight run.
452-
if case.restart_check and not ARG("add_new_variables"):
452+
if case.restart_check and not ARG("add_new_variables") and not ARG("generate"):
453453
straight_pack = pack
454454

455455
if timeout_flag.is_set():

0 commit comments

Comments
 (0)