-
Notifications
You must be signed in to change notification settings - Fork 205
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
fix getting all available output for interactive commands + fix logging end of output when no match was found in run_shell_cmd
#4504
fix getting all available output for interactive commands + fix logging end of output when no match was found in run_shell_cmd
#4504
Conversation
…r Q&A shell command run via run_shell_cmd
easybuild/tools/run.py
Outdated
|
||
# note: we assume that there won't be any questions in stderr output | ||
if split_stderr: | ||
stderr += proc.stderr.read1(read_size) or b'' | ||
more_stderr = True | ||
while more_stdout: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
while more_stdout: | |
while more_stderr: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in c090f49
run_shell_cmd
run_shell_cmd
easybuild/tools/run.py
Outdated
|
||
if qa_patterns: | ||
if _answer_question(stdout, proc, qa_patterns, qa_wait_patterns): | ||
time_no_match = 0 | ||
else: | ||
_log.debug(f"No match found in question/wait patterns at end of stdout: {stdout[:1000]}") | ||
_log.debug(f"No match found in question/wait patterns at end of stdout: {stdout[:-1000]}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs more work, don't merge yet please...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in 0e15657
2c77d7d
to
0e15657
Compare
bug fix, required for installing Maple (cfr. easybuilders/easybuild-easyblocks#3286)