test: replace journal checkers with journalctl --follow + grep -m
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 22 May 2024 03:26:58 +0000 (12:26 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 22 May 2024 10:03:35 +0000 (12:03 +0200)
commit505b20ecddc089780404278333bbdfd6176cb203
tree66a590970f78a4162e89968664f6e6dc0cb9abed
parentce2aade08c9d7b67514550f263a2148700892f3e
test: replace journal checkers with journalctl --follow + grep -m

Recently, for slow test environments, journalctl --sync was added to the
loop in the timeout. However, journalctl --sync may be slow in such systems,
and timeout easily triggered during syncing.
Hopefully, reading journal with --follow and grep the output with an expected
line should be efficient.

Hopefully fixes #32712.
test/units/TEST-17-UDEV.02.sh
test/units/TEST-35-LOGIN.sh
test/units/TEST-50-DISSECT.dissect.sh
test/units/TEST-60-MOUNT-RATELIMIT.sh