judge: add communication problem support (#834) (#925)

Co-authored-by: undefined <i@undefined.moe>
This commit is contained in:
Milmonandundefined authored and GitHub committed 2025-01-21 07:33:39 +08:00
1 parent abf1c7205e
commit ebc586daba
15 files changed
+151 -33

No files matched your search

+1
View File
@@ -19,6 +19,7 @@ export default async function readYamlCases(cfg: Record<string, any> = {}, check
config.checker ||= checkFile(cfg.checker, 'Cannot find checker {0}.');
}
if (cfg.interactor) config.interactor = checkFile(cfg.interactor, 'Cannot find interactor {0}.');
if (cfg.manager) config.manager = checkFile(cfg.manager, 'Cannot find Manager {0}.');
if (cfg.validator) config.validator = checkFile(cfg.validator, 'Cannot find validator {0}.');
for (const n of ['judge', 'user']) {
const conf = cfg[`${n}_extra_files`];