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 2, 2024
1 parent 1d0856c commit 721e44d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dmoj/testsuite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
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
executors: [RUST]
time: 2
memory: 65536
source: sol.py
Expand Down

0 comments on commit 721e44d

Please sign in to comment.