mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
judge: support HYDRO_TESTCASE
This commit is contained in:
1 parent
9ea781f800
commit
ede8a26253
5 files changed
+6
-5
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@hydrooj/hydrojudge",
|
||||
"bin": "bin/hydrojudge.js",
|
||||
"version": "2.13.3",
|
||||
"version": "2.13.4",
|
||||
"main": "package.json",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
|
||||
@@ -75,7 +75,7 @@ function judgeCase(c: Case, sid: string) {
|
||||
checker_type: ctx.config.checker_type,
|
||||
score: ctxSubtask.subtask.score,
|
||||
detail: ctx.config.detail ?? true,
|
||||
env: ctx.env,
|
||||
env: { ...ctx.env, HYDRO_TESTCASE: c.id.toString() },
|
||||
});
|
||||
}
|
||||
} else if (status === STATUS.STATUS_RUNTIME_ERROR && code) {
|
||||
|
||||
@@ -35,7 +35,7 @@ function judgeCase(c: Case) {
|
||||
time: ctxSubtask.subtask.time * 2 * ctx.executeInteractor.time,
|
||||
memory: ctxSubtask.subtask.memory * 2,
|
||||
copyOut: ['/w/tout?'],
|
||||
env: ctx.env,
|
||||
env: { ...ctx.env, HYDRO_TESTCASE: c.id.toString() },
|
||||
},
|
||||
);
|
||||
// TODO handle tout (maybe pass to checker?)
|
||||
|
||||
Reference in new issue
Block a user