From: Topi Miettinen Date: Sun, 17 Dec 2023 15:56:02 +0000 (+0200) Subject: test-network: fix racy test for address_static X-Git-Tag: v256-rc1~1469^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1ce2ffac6ca05bbeae0a4692a9a873c92be00a35;p=thirdparty%2Fsystemd.git test-network: fix racy test for address_static NFT sets must be installed before starting networkd, otherwise some sets may be installed too late. Closes #30427 --- diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index b70795a908d..058d90e6a07 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -2562,10 +2562,10 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities): def test_address_static(self): copy_network_unit('25-address-static.network', '12-dummy.netdev', copy_dropins=False) - start_networkd() self.setup_nftset('addr4', 'ipv4_addr') self.setup_nftset('network4', 'ipv4_addr', 'flags interval;') self.setup_nftset('ifindex', 'iface_index') + start_networkd() self.wait_online(['dummy98:routable'])