Skip to content

Commit

Permalink
testsuite: skip test if executors are not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
quantum5 committed Jan 5, 2024
1 parent 080f941 commit a7b8056
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dmoj/testsuite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
1 change: 1 addition & 0 deletions testsuite/rust_generator/tests/AC/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: PY3
required_auxiliary_executors: [RUST]
time: 2
memory: 65536
source: sol.py
Expand Down

0 comments on commit a7b8056

Please sign in to comment.