Skip to content

Commit

Permalink
SCRATCH: pass argument --buffer-stdout
Browse files Browse the repository at this point in the history
New feature in scratch-run 0.1.0
  • Loading branch information
hieplpvip committed Jan 5, 2024
1 parent 270dfb9 commit 101fed9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dmoj/executors/SCRATCH.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ def __init__(self, problem_id: str, source_code: bytes, **kwargs) -> None:
super().__init__(problem_id, source_code, **kwargs)
self.meta = kwargs.get('meta', {})

def get_cmdline(self, **kwargs) -> List[str]:
command = self.get_command()
assert command is not None
return [command, self._code, '--buffer-stdout']

def get_fs(self) -> List[FilesystemAccessRule]:
return super().get_fs() + [ExactFile('/etc/ssl/openssl.cnf'), ExactFile(self.runtime_dict['scratch-run'])]

Expand Down

0 comments on commit 101fed9

Please sign in to comment.