From 26e04a895de5a03f78e811c66874f58f91577613 Mon Sep 17 00:00:00 2001
From: Yu Watanabe <watanabe.yu+github@gmail.com>
Date: Sat, 6 Jan 2024 11:29:01 +0900
Subject: [PATCH 0528/1160] test-network: sync journal before read
Otherwise, test cases that check journal entries, e.g. test_unit_file()
may fail.
(cherry picked from commit bd581438a1019ae48037fd205d1cb5999aed8ecf)
test/test-network/systemd-networkd-tests.py | 1 +
1 file changed, 1 insertion(+)
@@ -709,6 +709,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):
--
2.33.0