From: Yu Watanabe Date: Sat, 6 Jan 2024 02:32:03 +0000 (+0900) Subject: test-network: use read_networkd_log() at one more place X-Git-Tag: v256-rc1~1251^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=032fd10de88fedcaec68d1049596c25e9a4ea355;p=thirdparty%2Fsystemd.git test-network: use read_networkd_log() at one more place --- diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 7c9ca6610da..b9eba5fb7a5 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: