From: Yu Watanabe Date: Wed, 5 May 2021 14:05:02 +0000 (+0900) Subject: test-network: wait for the interfaces are configured after reloading .network files X-Git-Tag: v249-rc1~240^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=932e157b5e0936a5f531b8bb559997830eb14739;p=thirdparty%2Fsystemd.git test-network: wait for the interfaces are configured after reloading .network files --- diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index cf009ee1786..97581d2e596 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -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)