From fcd7998880e28695da7a13125994263445eed53f Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 2 Nov 2022 06:49:26 +0900 Subject: [PATCH] test-network: wait for bound interface to be processed by udevd If another bound interface (dummy98) will be removed before that dummy99 is processed by udevd, then removing dummy98 in the next step makes the target interface (test1) bring down. Follow-up for 3e2f7c46da528775f90c521e4cf22c2f61f82a81. --- test/test-network/systemd-networkd-tests.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 3fc0ad957e8..752a5e41948 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -3176,6 +3176,7 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities): # add another bound interface. The interface is still up. check_output('ip link add dummy99 type dummy') check_output('ip link set dummy99 up') + self.wait_operstate('dummy99', 'degraded', setup_state='unmanaged') output = check_output('ip address show test1') print(output) self.assertIn('UP,LOWER_UP', output) -- 2.47.3