]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
test: consider SIGTERM of test-init.sh a successful termination
authorBenjamin Drung <benjamin.drung@canonical.com>
Tue, 27 Jan 2026 15:24:53 +0000 (16:24 +0100)
committerLaszlo <laszlo.gombos@gmail.com>
Thu, 29 Jan 2026 12:33:41 +0000 (07:33 -0500)
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.

test/modules.d/70test-root/testsuite.service

index f096af1ddebdb369bd1424d607931b32c2f51bf8..79d567a0cdbf30983dee815de70f4fcb9d953a16 100644 (file)
@@ -7,3 +7,4 @@ ExecStart=/sbin/test-init
 Type=oneshot
 StandardInput=tty
 StandardOutput=tty
+SuccessExitStatus=SIGTERM