From 592774c0918f7c0b70d7ca8f49b2cb9668708066 Mon Sep 17 00:00:00 2001 From: undefined Date: Mon, 28 Mar 2022 01:30:26 +0800 Subject: [PATCH] judge: add HYDRO_PRETEST env to analysis --- packages/hydrojudge/package.json | 2 +- packages/hydrojudge/src/judge/run.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/hydrojudge/package.json b/packages/hydrojudge/package.json index 031b8e888..dc26bbb7f 100644 --- a/packages/hydrojudge/package.json +++ b/packages/hydrojudge/package.json @@ -1,7 +1,7 @@ { "name": "@hydrooj/hydrojudge", "bin": "bin/hydrojudge.js", - "version": "2.15.1", + "version": "2.15.2", "main": "package.json", "author": "undefined ", "repository": "https://github.com/hydro-dev/Hydro.git", diff --git a/packages/hydrojudge/src/judge/run.ts b/packages/hydrojudge/src/judge/run.ts index b1b181720..9c45da10a 100644 --- a/packages/hydrojudge/src/judge/run.ts +++ b/packages/hydrojudge/src/judge/run.ts @@ -91,6 +91,10 @@ export const judge = async (ctx: Context) => { compile: { content: langConfig.compile }, execute: { content: langConfig.execute }, }, + env: { + ...ctx.env, + HYDRO_PRETEST: 'true', + }, time: 5000, memory: 256, }).then((r) => {