linux-test-project / kirk

Kirk application aims to merge multiple Linux testing frameworks in one tool.
GNU General Public License v2.0
5 stars 5 forks source link

Fix SSH execution not redirecting output properly #17

Closed acerv closed 6 months ago

acerv commented 6 months ago

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.