Skip to content

Commit

Permalink
Merge pull request #4471 from boegel/run_async_test_fix_workdir
Browse files Browse the repository at this point in the history
update easyblocks for toy extensions to make sure that asynchronous installation command is run in correct working directory
  • Loading branch information
branfosj authored Mar 2, 2024
2 parents 1bbd3b6 + 4419025 commit 128505f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def run_async(self, thread_pool):
cmd = f"echo 'no sources for {self.name}'"

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

def postrun(self):
"""
Expand Down
2 changes: 1 addition & 1 deletion test/framework/sandbox/easybuild/easyblocks/t/toy.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def run_async(self, thread_pool):
cmd = compose_toy_build_cmd(self.cfg, self.name, self.cfg['prebuildopts'], self.cfg['buildopts'])
task_id = f'ext_{self.name}_{self.version}'
return thread_pool.submit(run_shell_cmd, cmd, asynchronous=True, env=os.environ.copy(),
fail_on_error=False, task_id=task_id)
fail_on_error=False, task_id=task_id, work_dir=os.getcwd())

def postrun(self):
"""
Expand Down

0 comments on commit 128505f

Please sign in to comment.