test-network: use networkctl_status() helper function at one more place

This commit is contained in:
Yu Watanabe
2026-05-21 07:06:32 +09:00
parent 8e7665f87f
commit 52421acf17
+1 -1
View File
@@ -8153,7 +8153,7 @@ class NetworkdDHCPServerTests(unittest.TestCase, Utilities):
self.wait_online('veth-peer:routable')
for _ in range(10):
output = check_output(*networkctl_cmd, '-n', '0', 'status', 'veth-peer', env=env)
output = networkctl_status('veth-peer')
if 'Offered DHCP leases: 192.168.5.' in output:
break
time.sleep(0.2)