]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: fix racy test for address_static
authorTopi Miettinen <toiwoton@gmail.com>
Sun, 17 Dec 2023 15:56:02 +0000 (17:56 +0200)
committerTopi Miettinen <toiwoton@gmail.com>
Sun, 17 Dec 2023 15:59:53 +0000 (17:59 +0200)
NFT sets must be installed before starting networkd, otherwise some sets may be
installed too late.

Closes #30427

test/test-network/systemd-networkd-tests.py

index b70795a908dab93ce47d90b6e79f8163dc049119..058d90e6a0746e0c46ae3a8b22d159e816d7bfc4 100755 (executable)
@@ -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'])