]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: use wait_operstate() at one more place 23959/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 9 Jul 2022 03:20:11 +0000 (12:20 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 9 Jul 2022 03:20:11 +0000 (12:20 +0900)
test/test-network/systemd-networkd-tests.py

index ea71ea3fa24f199a9774bf8fb2d5e76c92db7127..46c182be465250fea325c67b409005f1c3bd8f1d 100755 (executable)
@@ -2358,8 +2358,7 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
         copy_unit_to_networkd_unit_path('25-address-ipv4acd-veth99.network.d/conflict-address.conf')
         run(*networkctl_cmd, 'reload', env=env)
         time.sleep(1)
-        rc = call(*wait_online_cmd, '--timeout=10s', '--interface=veth99:routable', env=env)
-        self.assertTrue(rc == 1)
+        self.wait_operstate('veth99', operstate='routable', setup_state='configuring', setup_timeout=10)
 
         output = check_output('ip -4 address show dev veth99')
         print(output)