]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-18-FAILUREACTION: Exit with 123 on success
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 29 Apr 2024 13:57:49 +0000 (15:57 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 30 Apr 2024 20:10:05 +0000 (22:10 +0200)
mkosi expects the virtual machine/container to exit with exit status
123 on success so let's make sure that's the case.

test/units/testsuite-18.sh

index 44b792f0031e7e5f578bd9039ff4229736b53e41..364c20d863353f0c50b6221fedb312a65ecc21d9 100755 (executable)
@@ -11,7 +11,7 @@ if ! test -f /firstphase ; then
     systemd-run --wait -p SuccessAction=reboot true
 else
     echo OK >/testok
-    systemd-run --wait -p FailureAction=poweroff false
+    systemd-run --wait -p FailureAction=exit -p FailureActionExitStatus=123 false
 fi
 
 sleep infinity