1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-01 08:58:29 +03:00
systemd/test/units/end.sh
2024-02-27 18:32:51 +01:00

14 lines
425 B
Bash
Executable File

#!/usr/bin/env bash
# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -o pipefail
(! journalctl -q -o short-monotonic --grep "didn't pass validation" >>/failed)
# Here, the redundant '[ ]' in the pattern is required in order not to match the logged command itself.
(! journalctl -q -o short-monotonic --grep 'Warning: cannot close sd-bus connection[ ].*after fork' >>/failed)
systemctl poweroff --no-block
exit 0