]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - test/TEST-01-BASIC/test.sh
test: correctly fail when system is borked
[thirdparty/systemd.git] / test / TEST-01-BASIC / test.sh
index 2314ec37ce5e1e91873c19688feac50a4821e1a8..0f29ad7eda727ddcdb3ecaf3a3e9c8d72f030d18 100755 (executable)
@@ -24,7 +24,7 @@ Description=Testsuite service
 After=multi-user.target
 
 [Service]
-ExecStart=/bin/sh -x -c 'systemctl --state=failed --no-legend --no-pager > /failed ; systemctl daemon-reload ; echo OK > /testok'
+ExecStart=/bin/sh -e -x -c 'systemctl --state=failed --no-legend --no-pager > /failed ; systemctl daemon-reload ; echo OK > /testok'
 Type=oneshot
 EOF