From 842a9d5f9174940ffe2bfddd1cd72654323ce27f Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Fri, 30 Sep 2022 08:48:53 +0200 Subject: [PATCH] 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. --- test/test-functions | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/test-functions b/test/test-functions index 331e98c04e3..e9da6e3d113 100644 --- a/test/test-functions +++ b/test/test-functions @@ -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"