1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

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

This commit is contained in:
Yu Watanabe 2021-05-05 23:05:02 +09:00
parent 1ef2eedce7
commit 932e157b5e

View File

@ -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)