Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 9 commits into from Aug 21, 2023

Conversation

boegel
Copy link
Member

@boegel boegel commented Aug 15, 2023

No description provided.

@@ -108,7 +108,7 @@ def cache_aware_func(cmd, *args, **kwargs):

@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
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
test/framework/lib.py Outdated Show resolved Hide resolved
Copy link
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
32 checks passed
@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
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants