test: Run end.sh when running integration tests with mkosi

This commit is contained in:
Daan De Meyer 2024-06-02 10:59:09 +02:00
parent 7c0ab0cdf2
commit da3c6fc553
3 changed files with 2 additions and 1 deletions

View File

@ -71,6 +71,7 @@ def main():
[Service]
StandardOutput=journal+console
ExecStart=/usr/lib/systemd/tests/testdata/units/end.sh
"""
)

View File

@ -3,6 +3,7 @@
Description=End the test
After=testsuite.target
OnFailure=poweroff.target
OnSuccess=poweroff.target
OnFailureJobMode=replace-irreversibly
[Service]

View File

@ -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