]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: wait for the interfaces are configured after reloading .network files 19533/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 5 May 2021 14:05:02 +0000 (23:05 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 12 May 2021 02:26:06 +0000 (11:26 +0900)
test/test-network/systemd-networkd-tests.py

index cf009ee1786c91fcc59bf4c84d6684df48d18a18..97581d2e596951b6cd8b036d6cd3d0dcc0c7a47d 100755 (executable)
@@ -2896,6 +2896,8 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
         self.assertEqual(rc, 0)
         time.sleep(1)
 
+        self.wait_online(['veth99:routable', 'veth-peer:routable'])
+
         output = check_output('ip nexthop list dev veth99')
         print(output)
         self.assertEqual(output, '')
@@ -2909,6 +2911,8 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
         self.assertEqual(rc, 0)
         time.sleep(1)
 
+        self.wait_online(['veth99:routable', 'veth-peer:routable'])
+
         rc = call('ip link del veth99')
         self.assertEqual(rc, 0)
         time.sleep(2)