Skip to content

Commit

Permalink
Fixes to unbreak migrating to multipass support
Browse files Browse the repository at this point in the history
  • Loading branch information
eldering committed Oct 27, 2024
1 parent 4accdee commit 3f10304
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions judge/judgedaemon.main.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,8 @@ function fetch_executable_internal(
$execbuildpath = $execbuilddir . '/build';
$execrunpath = $execbuilddir . '/run';
$execrunjurypath = $execbuilddir . '/runjury';
if (!is_dir($execdir) || !file_exists($execdeploypath)) {
if (!is_dir($execdir) || !file_exists($execdeploypath) ||
($combined_run_compare && file_get_contents(LIBJUDGEDIR . '/run-interactive.sh')!==file_get_contents($execrunpath))) {
system('rm -rf ' . dj_escapeshellarg($execdir) . ' ' . dj_escapeshellarg($execbuilddir));
system('mkdir -p ' . dj_escapeshellarg($execbuilddir), $retval);
if ($retval !== 0) {
Expand Down Expand Up @@ -1399,7 +1400,7 @@ function judge(array $judgeTask): bool

$input = $tcfile['input'];
$output = $tcfile['output'];
$passLimit = $run_config['pass_limit'];
$passLimit = $run_config['pass_limit'] ?? 1;
for ($passCnt = 1; $passCnt <= $passLimit; $passCnt++) {
$nextPass = false;
if ($passLimit > 1) {
Expand Down
Empty file modified judge/run-interactive.sh
100644 → 100755
Empty file.

0 comments on commit 3f10304

Please sign in to comment.