test-journal.sh revision e8e5a6e255bc04a2a96cebbb84bd3f73a902c219
set -x
set -e
set -o pipefail
# Test stdout stream
# Skip empty lines
ID=$(journalctl --new-id128 | sed -n 2p)
>/expected
ID=$(journalctl --new-id128 | sed -n 2p)
>/expected
# Remove trailing spaces
ID=$(journalctl --new-id128 | sed -n 2p)
ID=$(journalctl --new-id128 | sed -n 2p)
# Don't remove leading spaces
ID=$(journalctl --new-id128 | sed -n 2p)
ID=$(journalctl --new-id128 | sed -n 2p)
exit 0