]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: use journalctl -n option instead of piping to head
authorNick Rosbrook <enr0n@ubuntu.com>
Mon, 19 Jan 2026 21:09:12 +0000 (16:09 -0500)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 27 Feb 2026 20:05:57 +0000 (20:05 +0000)
commit10ba7735a57a7f4264e515900be3fefb2240c809
tree433de3640e971bd39a0abf815d373dbf08f40f08
parent0432dcd1c53c3e2d9a94fb7ac8edb55d837524e2
test: use journalctl -n option instead of piping to head

On Ubuntu's test infrastructure for the development series, this test
often fails when piping the journal output to head. The cause is
unclear, but possibly related to Ubuntu's use of uutils coreutils.

Workaround this by just using journalctl's -n flag, which removes the
need for piping output to head.

(cherry picked from commit a8efad14f878a5ea0d566fd61bda8e0bb332ae7d)
(cherry picked from commit 2c661e5f0d54c59a796423c1b8c785ce94dcc026)
(cherry picked from commit ab3e570ede7c5e41b2e2cb664e2c1e1ea6cfe4c8)
test/units/TEST-04-JOURNAL.journal.sh