瀏覽代碼

ktest: Add another monitor flush before installing kernel

On some tests that do multiple boots (patchcheck, bisect, etc), the build
of the next kernel to run may finish before the stable kernel has finished
booting. Then the install of the new kernel will fail when it tries to connect
as the machine has not finished the boot process.

Do one more monitor flush to make sure the machine is up and running before
trying to connect to it again.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Steven Rostedt 13 年之前
父節點
當前提交
9f7424cc86
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      tools/testing/ktest/ktest.pl

+ 5 - 0
tools/testing/ktest/ktest.pl

@@ -1391,6 +1391,11 @@ sub get_version {
 }
 }
 
 
 sub start_monitor_and_boot {
 sub start_monitor_and_boot {
+    # Make sure the stable kernel has finished booting
+    start_monitor;
+    wait_for_monitor 5;
+    end_monitor;
+
     get_grub_index;
     get_grub_index;
     get_version;
     get_version;
     install;
     install;