From bd581438a1019ae48037fd205d1cb5999aed8ecf Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 6 Jan 2024 11:29:01 +0900 Subject: [PATCH] test-network: sync journal before read Otherwise, test cases that check journal entries, e.g. test_unit_file() may fail. --- test/test-network/systemd-networkd-tests.py | 1 + 1 file changed, 1 insertion(+) 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):