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

Fix SSH execution not redirecting output properly #17

Merged
merged 2 commits into from
Mar 14, 2024
Merged

Fix SSH execution not redirecting output properly #17

merged 2 commits into from
Mar 14, 2024

Conversation

acerv
Copy link
Collaborator

@acerv acerv commented Mar 14, 2024

This patch aims to save commands stdout/stderr once they are executed inside the SSH channel. The whole implementation has been changed, in order to customize the current SSH session object and to store both stdout and stderr messages inside it, as well as checking for Kernel Panic triggered by the command. In this way, the whole SSH implementation should be also more stable.

Also, SSH tests have been improved by adding more tests, in order to check stderr acquisition and long stdout text messages.

@acerv acerv self-assigned this Mar 14, 2024
@acerv acerv added the bug Something isn't working label Mar 14, 2024
This patch aims to save commands stdout/stderr once they are executed
inside the SSH channel. The whole implementation has been changed, in
order to customize the current SSH session object and to store both
stdout and stderr messages inside it, as well as checking for Kernel
Panic triggered by the command. In this way, the whole SSH
implementation should be also more stable.

Also, SSH tests have been improved by adding more tests, in order to
check stderr acquisition and long stdout text messages.
The previous code was not taking in consideration the return code 0, so
when test text was not acquired correctly, the text process ended up to
recognize test failure.
@acerv acerv merged commit b63ad1b into master Mar 14, 2024
24 checks passed
@acerv acerv deleted the ssh_fix branch March 14, 2024 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant