|
|
@ -208,7 +208,7 @@ export async function judgeStandard(task: StandardRunTask) |
|
|
|
try { |
|
|
|
try { |
|
|
|
await fse.move(pathLib.join(workingDir, outputFileName), pathLib.join(spjWorkingDir, 'user_out')); |
|
|
|
await fse.move(pathLib.join(workingDir, outputFileName), pathLib.join(spjWorkingDir, 'user_out')); |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
if (e.code === 'ENOENT' && runResult.result.status === SandboxStatus.OK) { |
|
|
|
if (e.code === 'ENOENT' && runResult.result.status === SandboxStatus.OK && !runResult.outputLimitExceeded) { |
|
|
|
status = TestcaseResultType.FileError; |
|
|
|
status = TestcaseResultType.FileError; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -388,4 +388,4 @@ export async function judgeInteraction(task: InteractionRunTask) |
|
|
|
await tryEmptyDir(spjWorkingDir); |
|
|
|
await tryEmptyDir(spjWorkingDir); |
|
|
|
await tryEmptyDir(workingDir); |
|
|
|
await tryEmptyDir(workingDir); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|