From 894ff7d1ab35b84e811bf2b9fe092c8518b49267 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 9 Jul 2022 12:19:52 +0900 Subject: [PATCH] test-network: suppress periodic output in wait_operstate() --- test/test-network/systemd-networkd-tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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