test: optionally print the journal after tests

This is hopefully the last bit of functionality from
https://salsa.debian.org/systemd-team/systemd/-/blob/debian/master/debian/tests/upstream.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-03-30 21:45:21 +02:00
parent f9eb2d51da
commit f1416431b6
1 changed files with 6 additions and 0 deletions

View File

@ -801,6 +801,12 @@ save_journal() {
/usr/lib/systemd/systemd-journal-remote \
-o $dest \
--getter="journalctl -o export -D $j"
if [ -n "${TEST_SHOW_JOURNAL}" ]; then
echo "---- $j ----"
journalctl --no-pager -o short-monotonic --no-hostname --priority=${TEST_SHOW_JOURNAL} -D $j
fi
rm -r $j
done