mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 15:10:33 +00:00
logs-show: show seqnum info in export+json output mode
This commit is contained in:
@@ -70,7 +70,7 @@ ID=$(journalctl --new-id128 | sed -n 2p)
|
||||
printf $'foo' | systemd-cat -t "$ID" --level-prefix false
|
||||
journalctl --sync
|
||||
journalctl -b -o export --output-fields=MESSAGE,FOO --output-fields=PRIORITY,MESSAGE -t "$ID" >/output
|
||||
[[ $(grep -c . /output) -eq 6 ]]
|
||||
[[ $(grep -c . /output) -eq 8 ]]
|
||||
grep -q '^__CURSOR=' /output
|
||||
grep -q '^MESSAGE=foo$' /output
|
||||
grep -q '^PRIORITY=6$' /output
|
||||
|
||||
Reference in New Issue
Block a user