diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-11-02 06:49:26 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-11-02 08:24:01 +0900 |
commit | fcd7998880e28695da7a13125994263445eed53f (patch) | |
tree | 00e0b32ab7a9eb4327aaaf9697db0dc25f02ab29 /test | |
parent | 729a49288153d341d5c4edd5d701421bb766135c (diff) | |
download | systemd-fcd7998880e28695da7a13125994263445eed53f.tar.gz |
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.
Diffstat (limited to 'test')
-rwxr-xr-x | test/test-network/systemd-networkd-tests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 3fc0ad957e..752a5e4194 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) |