Skip to content

Commit

Permalink
ktest: Reboot to good kernel after every bisect run
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Steven Rostedt authored and rostedt committed May 20, 2011
1 parent 4d62bf5 commit 4025bc6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/testing/ktest/ktest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1248,14 +1248,14 @@ sub run_bisect_test {

if ($failed) {
$result = 0;

# reboot the box to a good kernel
if ($type ne "build") {
bisect_reboot;
}
} else {
$result = 1;
}

# reboot the box to a kernel we can ssh to
if ($type ne "build") {
bisect_reboot;
}
$in_bisect = 0;

return $result;
Expand Down

0 comments on commit 4025bc6

Please sign in to comment.