mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 10:13:34 +08:00
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:
parent
f9eb2d51da
commit
f1416431b6
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user