]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: "never" is not a valid value for Restart=
authorFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 12 Dec 2023 11:43:36 +0000 (12:43 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 12 Dec 2023 13:36:28 +0000 (13:36 +0000)
[  154.140565] testsuite-07.sh[1014]: + systemctl start badbin_assert.socket
[  154.738606] testsuite-07.sh[1014]: + socat - ABSTRACT-CONNECT:badbin_assert.socket
[  154.768418] systemd[1]: Cannot find unit for notify message of PID 1021, ignoring.
[  154.812357] systemd[1]: /run/systemd/system/badbin_assert.service:3: Failed to parse service restart specifier, ignoring: never
[  155.347350] testsuite-07.sh[1014]: + timeout 10 sh -c 'while systemctl is-active badbin_assert.service; do sleep .5; done'
[  155.669695] (badbin)[1045]: badbin_assert.service: Failed to execute /tmp/badbin: Exec format error
[  155.676596] systemd[1]: badbin_assert.service: Failed with result 'exit-code'.
[  156.081953] testsuite-07.sh[1051]: failed
[  156.132018] testsuite-07.sh[1054]: ++ systemctl show -P ExecMainStatus badbin_assert.service
[  156.326583] (badbin)[1050]: badbin_assert.service: Failed to execute /tmp/badbin: Exec format error
[  156.343566] systemd[1]: badbin_assert.service: Failed with result 'exit-code'.
[  156.904658] (badbin)[1055]: badbin_assert.service: Failed to execute /tmp/badbin: Exec format error
[  156.913709] systemd[1]: badbin_assert.service: Failed with result 'exit-code'.
[  157.066900] testsuite-07.sh[1014]: + [[ 0 == 203 ]]
[  157.081588] testsuite-07.sh[618]: + echo 'Subtest /usr/lib/systemd/tests/testdata/units/testsuite-07.issue-30412.sh failed'

Follow-up for 1eeaa93de36.

test/units/testsuite-07.issue-30412.sh

index 333b95f9bb1daf33965ee23145422b3898953fce..61801c543af2e281b75cec49fc25a3a260fcb820 100755 (executable)
@@ -14,7 +14,7 @@ chmod 744 /tmp/badbin
 cat >/run/systemd/system/badbin_assert.service <<EOF
 [Service]
 ExecStart=/tmp/badbin
-Restart=never
+Restart=no
 EOF
 
 cat >/run/systemd/system/badbin_assert.socket <<EOF