test: Run end.sh when running integration tests with mkosi
This commit is contained in:
@@ -71,6 +71,7 @@ def main():
|
||||
|
||||
[Service]
|
||||
StandardOutput=journal+console
|
||||
ExecStart=/usr/lib/systemd/tests/testdata/units/end.sh
|
||||
"""
|
||||
)
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
Description=End the test
|
||||
After=testsuite.target
|
||||
OnFailure=poweroff.target
|
||||
OnSuccess=poweroff.target
|
||||
OnFailureJobMode=replace-irreversibly
|
||||
|
||||
[Service]
|
||||
|
||||
@@ -13,5 +13,4 @@ set -o pipefail
|
||||
(! journalctl -q -o short-monotonic --grep "[F]ailed to parse serialized line" >>/failed)
|
||||
(! journalctl -q -o short-monotonic --grep "[F]ailed to (de)?serialize \w+" >>/failed)
|
||||
|
||||
systemctl poweroff --no-block
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user