test: kill the machine on oops/panic/soft_lockup

Otherwise the machine will hang on the panic until the timeout happens,
which might waste quite a considerable amount of time in certain cases.
This commit is contained in:
Frantisek Sumsal 2022-09-30 08:48:53 +02:00 committed by Yu Watanabe
parent 950aeeb8ff
commit 842a9d5f91

View file

@ -478,7 +478,12 @@ run_qemu() {
)
if ! get_bool "$INTERACTIVE_DEBUG"; then
kernel_params+=("systemd.wants=end.service")
kernel_params+=(
"oops=panic"
"panic=1"
"softlockup_panic=1"
"systemd.wants=end.service"
)
fi
[ -e "$IMAGE_PRIVATE" ] && image="$IMAGE_PRIVATE" || image="$IMAGE_PUBLIC"