diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-11-26 22:26:07 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-11-27 20:13:44 +0100 |
commit | 038e4554627c610ae6799d74f9f4bce530d7c283 (patch) | |
tree | 5f00c2db790e517830f26e9456c38078db071a08 /test/units/end.sh | |
parent | test: show saved journal files after TEST-02-UNITTESTS (diff) | |
download | systemd-038e4554627c610ae6799d74f9f4bce530d7c283.tar.xz systemd-038e4554627c610ae6799d74f9f4bce530d7c283.zip |
test: verify json format passed through varlink
This drops logs of failed unit tests in TEST-02-UNITTESTS from the journal,
as the expected logs from test-varlink-idl makes the post script fail.
Saving logs in journal is simply noisy, and we will output anyway after
qemu or nspawn finished by check_result_{qemu,nspawn}_unittests().
Diffstat (limited to 'test/units/end.sh')
-rwxr-xr-x | test/units/end.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/units/end.sh b/test/units/end.sh new file mode 100755 index 0000000000..dd50654f8d --- /dev/null +++ b/test/units/end.sh @@ -0,0 +1,10 @@ +#!/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) + +systemctl poweroff --no-block +exit 0 |