OSDN Git Service

ktest.pl: Powercycle the box on reboot if no connection can be made
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 7 Feb 2017 17:13:08 +0000 (12:13 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 7 Feb 2017 17:23:38 +0000 (12:23 -0500)
commit6474ace999edd714151c04c0b0534b89c2e9b6d8
treecf3361fcb4a14faa1ba05640ad7e15d664b688d3
parent6e98d1b4415fe681ceb245e1374ed5e1942a332b
ktest.pl: Powercycle the box on reboot if no connection can be made

When performing a reboot of the test box, try to ssh to it. If it can't
connect for 5 seconds, then powercycle the box. This is useful because the
reboot is done via ssh, and if you can't ssh to the box because it is hung,
the reboot fails to reboot.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/testing/ktest/ktest.pl