diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2015-11-08 22:00:34 +0000 |
---|---|---|
committer | Evgeny Vereshchagin <evvers@ya.ru> | 2015-11-10 18:01:15 +0000 |
commit | 5c404f1ab8e96efedb983806443ca982a1b2a372 (patch) | |
tree | 4183825be3d59b298243ae1bb513190462f8a514 /test/end.service | |
parent | 2933d599c242ebfc70ddcffe59163916b02270f1 (diff) |
tests: various fixes
* remove journal flushing (systemd-journal-flush.service runs journalctl --flush on boot)
* use sh -c and PATH instead of @SYSTEMCTL@ expansion
* remove unnecessary semicolons etc
Diffstat (limited to 'test/end.service')
-rw-r--r-- | test/end.service | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/end.service b/test/end.service new file mode 100644 index 0000000000..6e1996fd02 --- /dev/null +++ b/test/end.service @@ -0,0 +1,10 @@ +[Unit] +Description=End the test +After=testsuite.service +OnFailure=poweroff.target +OnFailureJobMode=replace-irreversibly + +[Service] +Type=oneshot +ExecStart=/bin/sh -x -c 'systemctl poweroff --no-block' +TimeoutStartSec=5m |