Skip to content

Commit

Permalink
run tests in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
lrvideckis committed May 22, 2024
1 parent c420326 commit f99fc89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions onlinejudge_verify/languages/rust.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def compile(self, path: pathlib.Path, *, basedir: pathlib.Path, tempdir: pathlib
metadata = _cargo_metadata(cwd=path.parent)
target = _ensure_target(metadata, path)
subprocess.run(
['cargo', 'build', '--release', *_target_option(target)],
['cargo', 'build', *_target_option(target)],
cwd=path.parent,
check=True,
)
Expand All @@ -242,7 +242,7 @@ def get_execute_command(self, path: pathlib.Path, *, basedir: pathlib.Path, temp
path = basedir / path
metadata = _cargo_metadata(cwd=path.parent)
target = _ensure_target(metadata, path)
return [str(pathlib.Path(metadata['target_directory'], 'release', *([] if _is_bin(target) else ['examples']), target['name']))]
return [str(pathlib.Path(metadata['target_directory'], 'debug', *([] if _is_bin(target) else ['examples']), target['name']))]


class RustLanguage(Language):
Expand Down

0 comments on commit f99fc89

Please sign in to comment.