From: Yu Watanabe Date: Thu, 4 Jan 2024 18:49:32 +0000 (+0900) Subject: test-network: add test for removal of nexthops that we do not receive reply from... X-Git-Tag: v256-rc1~1200^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2ec0e95eb7ee762ed2da25bf0995a6b33cfbd147;p=thirdparty%2Fsystemd.git test-network: add test for removal of nexthops that we do not receive reply from the kernel --- diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 0a87c5d239f..c50c17ac9c2 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -3996,7 +3996,11 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities): remove_network_unit('25-nexthop-nothing.network', '25-nexthop-dummy-2.network') copy_network_unit('25-nexthop-1.network', '25-nexthop-dummy-1.network') - networkctl_reload() + # Of course, networkctl_reconfigure() below is unnecessary in normal operation, but it is intentional + # here to test reconfiguring with different .network files does not trigger race. + # See also comments in link_drop_requests(). + networkctl_reconfigure('dummy98') # reconfigured with 25-nexthop-dummy-2.network + networkctl_reload() # reconfigured with 25-nexthop-dummy-1.network self.check_nexthop(manage_foreign_nexthops, first=True)