Commit 4025bc62dd045d326d8a26a50fc86fd163aec89f

Authored by Steven Rostedt
Committed by Steven Rostedt
1 parent 4d62bf51ac

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>

Showing 1 changed file with 5 additions and 5 deletions Side-by-side Diff

tools/testing/ktest/ktest.pl
... ... @@ -1248,13 +1248,13 @@
1248 1248  
1249 1249 if ($failed) {
1250 1250 $result = 0;
1251   -
1252   - # reboot the box to a good kernel
1253   - if ($type ne "build") {
1254   - bisect_reboot;
1255   - }
1256 1251 } else {
1257 1252 $result = 1;
  1253 + }
  1254 +
  1255 + # reboot the box to a kernel we can ssh to
  1256 + if ($type ne "build") {
  1257 + bisect_reboot;
1258 1258 }
1259 1259 $in_bisect = 0;
1260 1260