mirror of
https://github.com/systemd/systemd.git
synced 2025-02-09 13:57:42 +03:00
This was usually caught by "accident" by other tests that parse output of commands executed by sd-executor, so let's have an explicit check for this.
18 lines
687 B
Bash
Executable File
18 lines
687 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)
|
|
|
|
# Check if sd-executor doesn't complain about not being able to (de)serialize stuff
|
|
(! 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
|