Skip to content

implement support in 'run' function for running command in different working directory + switch to run function in filetools#4327

Merged
jfgrimm merged 9 commits intoeasybuilders:5.0.xfrom
boegel:run_filetools
Aug 21, 2023
Merged

implement support in 'run' function for running command in different working directory + switch to run function in filetools#4327
jfgrimm merged 9 commits intoeasybuilders:5.0.xfrom
boegel:run_filetools

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Aug 15, 2023

No description provided.

Comment thread easybuild/tools/run.py
@run_cache
def run(cmd, fail_on_error=True, split_stderr=False, stdin=None, env=None,
hidden=False, in_dry_run=False, work_dir=None, shell=True,
hidden=False, in_dry_run=False, verbose_dry_run=False, work_dir=None, shell=True,
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

having both hidden (to disable output in both trace and dry run mode) and verbose_dry_run is necessary evil, since there are situations where we do not want trace output, but we do want to see commands that would be executed in dry run mode (primarily in get_source_tarball_from_git)

@boegel boegel requested a review from jfgrimm August 16, 2023 10:02
Comment thread test/framework/lib.py Outdated
Copy link
Copy Markdown
Member

@jfgrimm jfgrimm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jfgrimm jfgrimm merged commit 21138c3 into easybuilders:5.0.x Aug 21, 2023
@boegel boegel deleted the run_filetools branch August 22, 2023 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants