Skip to content

fix getting all available output for interactive commands + fix logging end of output when no match was found in run_shell_cmd#4504

Merged
branfosj merged 5 commits intoeasybuilders:5.0.xfrom
boegel:run_shell_cmd_qa_buffering
Apr 9, 2024
Merged

fix getting all available output for interactive commands + fix logging end of output when no match was found in run_shell_cmd#4504
branfosj merged 5 commits intoeasybuilders:5.0.xfrom
boegel:run_shell_cmd_qa_buffering

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Apr 6, 2024

bug fix, required for installing Maple (cfr. easybuilders/easybuild-easyblocks#3286)

Comment thread easybuild/tools/run.py Outdated
if split_stderr:
stderr += proc.stderr.read1(read_size) or b''
more_stderr = True
while more_stdout:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
while more_stdout:
while more_stderr:

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.

fixed in c090f49

@boegel boegel changed the title fix getting all available output for interactive commands in run_shell_cmd fix getting all available output for interactive commands + fix logging end of output when no match was found in run_shell_cmd Apr 6, 2024
Comment thread easybuild/tools/run.py Outdated
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]}")
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.

This needs more work, don't merge yet please...

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.

fixed in 0e15657

@boegel boegel force-pushed the run_shell_cmd_qa_buffering branch from 2c77d7d to 0e15657 Compare April 9, 2024 09:18
@branfosj branfosj merged commit f6469a2 into easybuilders:5.0.x Apr 9, 2024
@boegel boegel deleted the run_shell_cmd_qa_buffering branch April 9, 2024 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants