test-network: wait for that the link is in configuring state at the beginning
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 26 May 2021 12:13:56 +0000 (21:13 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 26 May 2021 12:13:56 +0000 (21:13 +0900)
test/test-network/systemd-networkd-tests.py

index d6b790bc35ae96dc0fa62a76b7390f300006446a..0c5fe461f44be2e8098400052be3b38545f7c612 100755 (executable)
@@ -2785,7 +2785,7 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
         for iteration in range(4):
             with self.subTest(iteration=iteration, expect_up=expect_up):
                 operstate = 'routable' if expect_up else 'off'
-                setup_state = 'configured' if expect_up else None
+                setup_state = 'configured' if expect_up else ('configuring' if iteration == 0 else None)
                 self.wait_operstate('test1', operstate, setup_state=setup_state, setup_timeout=20)
 
                 if expect_up: