]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: wait more and fix wrong operational state
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 13 Mar 2019 05:26:38 +0000 (14:26 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 13 Mar 2019 05:27:39 +0000 (14:27 +0900)
Closes #11977.

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

index 856960ad65f8d761f57b0adab3813fae2b07ff3e..eaf57cb540d45cb12e629bf105a18f457e0fe6f7 100755 (executable)
@@ -1219,7 +1219,7 @@ class NetworkdNetWorkBondTests(unittest.TestCase, Utilities):
 
         self.assertEqual(subprocess.call(['ip', 'link', 'set', 'dummy98', 'down']), 0)
         self.assertEqual(subprocess.call(['ip', 'link', 'set', 'test1', 'down']), 0)
-        time.sleep(2)
+        time.sleep(5)
 
         output = subprocess.check_output(['networkctl', 'status', 'dummy98']).rstrip().decode('utf-8')
         print(output)
@@ -1231,7 +1231,7 @@ class NetworkdNetWorkBondTests(unittest.TestCase, Utilities):
 
         output = subprocess.check_output(['networkctl', 'status', 'bond99']).rstrip().decode('utf-8')
         print(output)
-        self.assertRegex(output, 'State: degraded \(configured\)')
+        self.assertRegex(output, 'State: no-carrier \(configured\)')
 
 class NetworkdNetWorkBridgeTests(unittest.TestCase, Utilities):
     links = [