From: Yu Watanabe Date: Sat, 6 Jan 2024 02:29:01 +0000 (+0900) Subject: test-network: sync journal before read X-Git-Tag: v256-rc1~1251^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bd581438a1019ae48037fd205d1cb5999aed8ecf;p=thirdparty%2Fsystemd.git test-network: sync journal before read Otherwise, test cases that check journal entries, e.g. test_unit_file() may fail. --- diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 0a87c5d239f..7c9ca6610da 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):