ktest: Reboot to good kernel after every bisect run

Reboot after each bisect run regardless if the bisect passed
or failed. The test may just be to boot the kernel and that kernel
may not have a way to copy the next kerne to it. Reboot to a known
good kernel after each bisect run.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
Steven Rostedt 2011-05-20 09:16:29 -04:00 committed by Steven Rostedt
parent 4d62bf51ac
commit 4025bc62dd

View file

@ -1248,14 +1248,14 @@ sub run_bisect_test {
if ($failed) { if ($failed) {
$result = 0; $result = 0;
# reboot the box to a good kernel
if ($type ne "build") {
bisect_reboot;
}
} else { } else {
$result = 1; $result = 1;
} }
# reboot the box to a kernel we can ssh to
if ($type ne "build") {
bisect_reboot;
}
$in_bisect = 0; $in_bisect = 0;
return $result; return $result;