summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-01-06 03:29:01 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-01-06 04:45:59 +0100
commitbd581438a1019ae48037fd205d1cb5999aed8ecf (patch)
tree0dad7f73e0bce220ed14f61fddc9528ba61bb1f5
parentnspawn: lock down access to notify socket a bit (diff)
downloadsystemd-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.
-rwxr-xr-xtest/test-network/systemd-networkd-tests.py1
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):