test-network: wait for the interfaces are configured after reloading .network files

This commit is contained in:
Yu Watanabe
2021-05-12 11:26:06 +09:00
parent 1ef2eedce7
commit 932e157b5e
@@ -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)