From: Yu Watanabe Date: Sat, 9 Jul 2022 03:19:52 +0000 (+0900) Subject: test-network: suppress periodic output in wait_operstate() X-Git-Tag: v252-rc1~690^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=894ff7d1ab35b84e811bf2b9fe092c8518b49267;p=thirdparty%2Fsystemd.git test-network: suppress periodic output in wait_operstate() --- diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index a09396f52ea..ea71ea3fa24 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -654,9 +654,10 @@ class Utilities(): if not link_exists(link): continue output = check_output(*networkctl_cmd, '-n', '0', 'status', link, env=env) - print(output) if re.search(rf'(?m)^\s*State:\s+{operstate}\s+\({setup_state}\)\s*$', output): return True + + print(output) if fail_assert: self.fail(f'Timed out waiting for {link} to reach state {operstate}/{setup_state}') return False