]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: kill the machine on oops/panic/soft_lockup
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 30 Sep 2022 06:48:53 +0000 (08:48 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 30 Sep 2022 09:46:30 +0000 (18:46 +0900)
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

index 331e98c04e3e2ffb778be24bf62020b36ee3e9b4..e9da6e3d1133d7940ea3a1490a4847dee45ca791 100644 (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"