]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
oeqa ssh.py: add connection keep alive options to ssh client
authorMikko Rapeli <mikko.rapeli@linaro.org>
Thu, 9 Feb 2023 08:09:31 +0000 (10:09 +0200)
committerSteve Sakoman <steve@sakoman.com>
Sat, 18 Feb 2023 16:41:49 +0000 (06:41 -1000)
commit07db4a45918eb82503b0bbc7003258c0a03bd5fe
tree44da9bf83b4914fbcabe8543776939e20aaccd6a
parent5346b927a9fba57b2bb41406fcac09cd6369f26c
oeqa ssh.py: add connection keep alive options to ssh client

Configure ssh client to test that connection with server is up.
If the server does not respond within a minute then the connection,
target machine or sshd daemon are stuck and it's better to exit
the command execution with errors.

Some tests can execute a long time without returning stdout/stderror
data and it's difficult to adjust timers for those cases if
connection to target machine or the target machine itself hangs
and output is not expected in minutes or even hours.

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
(cherry picked from commit ba68ff04c5786eca7cd8dd44056705867dea8ac4)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oeqa/core/target/ssh.py