test: Synchronize journal before reading from it
authordann frazier <dann.frazier@canonical.com>
Tue, 28 Jan 2020 01:45:17 +0000 (18:45 -0700)
committerLennart Poettering <lennart@poettering.net>
Tue, 28 Jan 2020 14:11:58 +0000 (15:11 +0100)
commit37b9966e2525790843ab302a5b8009853a7905a0
tree7f68fc47d30d1e2d37a5c85dae8e0981e3229f9e
parent766840af424dc4929af8c53f8a1472edc8989806
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
test/TEST-21-SYSUSERS/test.sh