]> git.baikalelectronics.ru Git - kernel.git/commit
ktest: Add timeout for ssh sync testing
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 9 Mar 2020 20:00:11 +0000 (16:00 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 9 Mar 2020 20:04:31 +0000 (16:04 -0400)
commit4e6c090254b78d2ae20aef44c1613551097a534a
tree4c0de073f5050407b42ae4596a606e4b7068c444
parentb9bd64d80325e645867466c5647dd60f261062f2
ktest: Add timeout for ssh sync testing

Before rebooting the box, a "ssh sync" is called to the test machine to see
if it is alive or not. But if the test machine is in a partial state, that
ssh may never actually finish, and the ktest test hangs.

Add a 10 second timeout to the sync test, which will fail after 10 seconds
and then cause the test to reboot the test machine.

Cc: stable@vger.kernel.org
Fixes: 17dbabe2c804a ("ktest.pl: Powercycle the box on reboot if no connection can be made")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/testing/ktest/ktest.pl