test: Synchronize journal before reading from it
authordann frazier <dann.frazier@canonical.com>
Tue, 28 Jan 2020 01:45:17 +0000 (18:45 -0700)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 5 Feb 2020 13:48:26 +0000 (14:48 +0100)
commit2bbbe9ae41ab7037555ceb18f457ba84fa7241ba
tree99bb503e0905274e7940d5cce55764298fea5bf0
parent072485d661d73e8834dc667deea2c5aaa6527977
test: Synchronize journal before reading from it

There's a race condition in the sysuser test where it may try to read
entries from the journal before they are available. Fix it by adding a
`journalctl --sync` call.

BugLink: https://bugs.launchpad.net/bugs/1776654
(cherry picked from commit 37b9966e2525790843ab302a5b8009853a7905a0)
test/TEST-21-SYSUSERS/test.sh