summaryrefslogtreecommitdiffstats
path: root/test/test-network/systemd-networkd-tests.py
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-01-06 03:32:03 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-01-06 04:46:00 +0100
commit032fd10de88fedcaec68d1049596c25e9a4ea355 (patch)
treee29e151ec331902302c2ffe70e4cd645a825b7c8 /test/test-network/systemd-networkd-tests.py
parenttest-network: sync journal before read (diff)
downloadsystemd-032fd10de88fedcaec68d1049596c25e9a4ea355.tar.xz
systemd-032fd10de88fedcaec68d1049596c25e9a4ea355.zip
test-network: use read_networkd_log() at one more place
Diffstat (limited to '')
-rwxr-xr-xtest/test-network/systemd-networkd-tests.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py
index 7c9ca6610d..b9eba5fb7a 100755
--- a/test/test-network/systemd-networkd-tests.py
+++ b/test/test-network/systemd-networkd-tests.py
@@ -898,7 +898,6 @@ class Utilities():
def wait_activated(self, link, state='down', timeout=20, fail_assert=True):
# wait for the interface is activated.
- invocation_id = check_output('systemctl show systemd-networkd -p InvocationID --value')
needle = f'{link}: Bringing link {state}'
flag = state.upper()
for iteration in range(timeout + 1):
@@ -906,7 +905,7 @@ class Utilities():
time.sleep(1)
if not link_exists(link):
continue
- output = check_output('journalctl _SYSTEMD_INVOCATION_ID=' + invocation_id)
+ output = read_networkd_log()
if needle in output and flag in check_output(f'ip link show {link}'):
return True
if fail_assert: