]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: wait 2min for the bridge being in configured state
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 9 Jun 2020 09:27:57 +0000 (18:27 +0900)
committerLennart Poettering <lennart@poettering.net>
Tue, 9 Jun 2020 15:19:22 +0000 (17:19 +0200)
On some CIs, it may takes more than 40 seconds.

Hopefully fixes #16105.

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

index 5d08a7584ca3262c461c7cf823bc4848948ebe08..66dc46a6b4cea5ca1b8dac50b35bd922903b2ecc 100755 (executable)
@@ -2797,7 +2797,8 @@ class NetworkdBridgeTests(unittest.TestCase, Utilities):
             with self.subTest(test=test):
                 if test == 'no-slave':
                     # bridge has no slaves; it's up but *might* not have carrier
-                    self.wait_online(['bridge99:no-carrier'])
+                    # It may take very long time that the interface become configured state.
+                    self.wait_online(['bridge99:no-carrier'], timeout='2m')
                     # due to a bug in the kernel, newly-created bridges are brought up
                     # *with* carrier, unless they have had any setting changed; e.g.
                     # their mac set, priority set, etc.  Then, they will lose carrier