From: Yu Watanabe Date: Wed, 13 Mar 2019 05:26:38 +0000 (+0900) Subject: test-network: wait more and fix wrong operational state X-Git-Tag: v242-rc1~151^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ddbf08cfd2904eb4317e222716c65deacf22513;p=thirdparty%2Fsystemd.git test-network: wait more and fix wrong operational state Closes #11977. --- diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 856960ad65f..eaf57cb540d 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -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 = [