Skip to content

Commit 3b9ec83

Browse files
DOMjudge teammeisterT
authored andcommitted
Give precedence to filename for expected result
(cherry picked from commit ed39176)
1 parent 845cf9f commit 3b9ec83

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

webapp/src/DOMJudgeBundle/Service/ImportProblemService.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,8 @@ public function importZippedProblem(
608608
} elseif (!in_array($expectedResult, $results)) {
609609
$messages[] = sprintf("Annotated result '%s' does not match directory for %s",
610610
implode(', ', $results), $path);
611+
} elseif (!empty($expectedResult)) {
612+
$results = [$expectedResult];
611613
}
612614
if ($totalSize <= $this->DOMJudgeService->dbconfig_get('sourcesize_limit') * 1024) {
613615
$contest = $this->entityManager->getRepository(Contest::class)->find($contest->getCid());

0 commit comments

Comments
 (0)