Skip to content

Commit

Permalink
HOTFIX: Execute setup steps prior to configuring the test process
Browse files Browse the repository at this point in the history
  • Loading branch information
Lnk2past authored Aug 23, 2024
1 parent 98a97f8 commit 89430d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contest/TestCase.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ def __init__(
for resource in resources:
shutil.copytree(resource['src'], pathlib.Path(self.test_home)/resource['dst'])

self.test_args = self._setup_test_process(self.exe, self.argv)
for step in self.setup:
step = self._setup_test_process(step)
with chdir.ChangeDirectory(self.test_home):
logger.debug(f'Running setup: {step}', extra=logger_format_fields)
run(step, stdout=PIPE, stderr=PIPE, cwd=pathlib.Path.cwd())
self.test_args = self._setup_test_process(self.exe, self.argv)

def _setup_istream(self, stream):
if isinstance(stream, list):
Expand Down

0 comments on commit 89430d6

Please sign in to comment.