diff --git a/dmoj/testsuite.py b/dmoj/testsuite.py index 985be7ff8..48ced35e6 100644 --- a/dmoj/testsuite.py +++ b/dmoj/testsuite.py @@ -244,6 +244,11 @@ 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 'executors' in config and any(executor not in all_executors for executor in config['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..f1d976aea 100644 --- a/testsuite/rust_generator/tests/AC/test.yml +++ b/testsuite/rust_generator/tests/AC/test.yml @@ -1,4 +1,5 @@ language: PY3 +executors: [RUST] time: 2 memory: 65536 source: sol.py