Skip to content

Commit e909df4

Browse files
committed
fix interactive multipass logic
1 parent 4c51094 commit e909df4

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

bin/interactive.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,10 @@ def get_validator_command() -> Sequence[str | Path]:
183183
if not validator_err:
184184
validator_err = bytes()
185185

186-
if verdict != Verdict.ACCEPTED and not run._continue_with_tle(
187-
verdict, max_duration >= timeout
188-
):
186+
if verdict == Verdict.TIME_LIMIT_EXCEEDED:
187+
if not run._continue_with_tle(verdict, max_duration >= timeout):
188+
break
189+
elif verdict != Verdict.ACCEPTED:
189190
break
190191

191192
if not run._prepare_nextpass(nextpass):
@@ -490,7 +491,10 @@ def close_io(stream: Optional[IO[bytes]]) -> None:
490491
else:
491492
tle_result.timeout_expired |= aborted
492493

493-
if not verdict != Verdict.ACCEPTED and not run._continue_with_tle(verdict, aborted):
494+
if verdict == Verdict.TIME_LIMIT_EXCEEDED:
495+
if not run._continue_with_tle(verdict, max_duration >= timeout):
496+
break
497+
elif verdict != Verdict.ACCEPTED:
494498
break
495499

496500
if not run._prepare_nextpass(nextpass):

0 commit comments

Comments
 (0)