From 932e157b5e0936a5f531b8bb559997830eb14739 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 5 May 2021 23:05:02 +0900 Subject: [PATCH] test-network: wait for the interfaces are configured after reloading .network files --- test/test-network/systemd-networkd-tests.py | 4 ++++ 1 file changed, 4 insertions(+) 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)