[why] When force_reboot is not added to the job.yaml, the test-machine is "no KERNEL found".
Signed-off-by: Hu XueJiao 1034502035@qq.com --- bin/lkp-setup-rootfs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/bin/lkp-setup-rootfs b/bin/lkp-setup-rootfs index 0eabea75..cca1b53b 100755 --- a/bin/lkp-setup-rootfs +++ b/bin/lkp-setup-rootfs @@ -61,7 +61,10 @@ job_does_not_need_reboot()
job_force_reboot() { - grep -q "^force_reboot: +1$" $job + grep -q "^force_reboot: 1$" $job && return 0 + grep -q "^do_not_reboot: 1$" $job || return 0 + + return 1 }
reboot_for_next_job()