From a7b8056f193d071832be948bdc2c69f87319215f Mon Sep 17 00:00:00 2001 From: Quantum Date: Mon, 1 Jan 2024 22:51:36 -0500 Subject: [PATCH] testsuite: skip test if executors are not supported --- dmoj/testsuite.py | 7 +++++++ testsuite/rust_generator/tests/AC/test.yml | 1 + 2 files changed, 8 insertions(+) diff --git a/dmoj/testsuite.py b/dmoj/testsuite.py index 985be7ff8..ff79289b9 100644 --- a/dmoj/testsuite.py +++ b/dmoj/testsuite.py @@ -244,6 +244,13 @@ def _run_test_case(self, problem, case_dir, config): if language not in all_executors: self.output(ansi_style('\t\t#ansi[Skipped](magenta|bold) - Language not supported')) return 0 + + if 'required_auxiliary_executors' in config and any( + executor not in all_executors for executor in config['required_auxiliary_executors'] + ): + self.output(ansi_style('\t\t#ansi[Skipped](magenta|bold) - Required executor not supported')) + return 0 + time = config['time'] memory = config['memory'] if isinstance(config['source'], str): diff --git a/testsuite/rust_generator/tests/AC/test.yml b/testsuite/rust_generator/tests/AC/test.yml index a6b571bd6..dca0fa7ed 100644 --- a/testsuite/rust_generator/tests/AC/test.yml +++ b/testsuite/rust_generator/tests/AC/test.yml @@ -1,4 +1,5 @@ language: PY3 +required_auxiliary_executors: [RUST] time: 2 memory: 65536 source: sol.py