diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-01-06 03:29:01 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-01-06 04:45:59 +0100 |
commit | bd581438a1019ae48037fd205d1cb5999aed8ecf (patch) | |
tree | 0dad7f73e0bce220ed14f61fddc9528ba61bb1f5 /test/test-network | |
parent | nspawn: lock down access to notify socket a bit (diff) | |
download | systemd-bd581438a1019ae48037fd205d1cb5999aed8ecf.tar.xz systemd-bd581438a1019ae48037fd205d1cb5999aed8ecf.zip |
test-network: sync journal before read
Otherwise, test cases that check journal entries, e.g. test_unit_file()
may fail.
Diffstat (limited to 'test/test-network')
-rwxr-xr-x | test/test-network/systemd-networkd-tests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 0a87c5d239..7c9ca6610d 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -713,6 +713,7 @@ def read_networkd_log(invocation_id=None, since=None): ] if since: command.append(f'--since={since}') + check_output('journalctl --sync') return check_output(*command) def stop_networkd(show_logs=True): |