mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 18:23:32 +08:00
test: Run end.sh when running integration tests with mkosi
This commit is contained in:
parent
7c0ab0cdf2
commit
da3c6fc553
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user