From: Benjamin Drung Date: Tue, 27 Jan 2026 15:24:53 +0000 (+0100) Subject: test: consider SIGTERM of test-init.sh a successful termination X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb5f1e6ac752707e32fbf2a2048b60d410c06738;p=thirdparty%2Fdracut-ng.git test: consider SIGTERM of test-init.sh a successful termination The `test-init.sh` will call `systemctl start poweroff.target` and get an `SIGTERM` interrupt. Since `testsuite.service` is `Type=oneshot` systemd will complain: ``` [ 1.892101] systemd[1]: testsuite.service: Main process exited, code=killed, status=15/TERM [ 1.892708] systemd[1]: testsuite.service: Failed with result 'signal'. ``` Consider `SIGTERM` of `test-init.sh` a successful termination. --- diff --git a/test/modules.d/70test-root/testsuite.service b/test/modules.d/70test-root/testsuite.service index f096af1dd..79d567a0c 100644 --- a/test/modules.d/70test-root/testsuite.service +++ b/test/modules.d/70test-root/testsuite.service @@ -7,3 +7,4 @@ ExecStart=/sbin/test-init Type=oneshot StandardInput=tty StandardOutput=tty +SuccessExitStatus=SIGTERM