Skip to content

Commit 128505f

Browse files
authored
Merge pull request #4471 from boegel/run_async_test_fix_workdir
update easyblocks for toy extensions to make sure that asynchronous installation command is run in correct working directory
2 parents 1bbd3b6 + 4419025 commit 128505f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/framework/sandbox/easybuild/easyblocks/generic/toy_extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def run_async(self, thread_pool):
9393
cmd = f"echo 'no sources for {self.name}'"
9494

9595
return thread_pool.submit(run_shell_cmd, cmd, asynchronous=True, env=os.environ.copy(),
96-
fail_on_error=False, task_id=task_id)
96+
fail_on_error=False, task_id=task_id, work_dir=os.getcwd())
9797

9898
def postrun(self):
9999
"""

test/framework/sandbox/easybuild/easyblocks/t/toy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def run_async(self, thread_pool):
170170
cmd = compose_toy_build_cmd(self.cfg, self.name, self.cfg['prebuildopts'], self.cfg['buildopts'])
171171
task_id = f'ext_{self.name}_{self.version}'
172172
return thread_pool.submit(run_shell_cmd, cmd, asynchronous=True, env=os.environ.copy(),
173-
fail_on_error=False, task_id=task_id)
173+
fail_on_error=False, task_id=task_id, work_dir=os.getcwd())
174174

175175
def postrun(self):
176176
"""

0 commit comments

Comments
 (0)