File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff 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 ):
You can’t perform that action at this time.
0 commit comments