From: Yu Watanabe Date: Mon, 3 Jul 2023 07:03:50 +0000 (+0900) Subject: test-network: check route more strictly X-Git-Tag: v254-rc1~49^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7e30527806956b7240ca7bf8d92038170fda44d0;p=thirdparty%2Fsystemd.git test-network: check route more strictly --- diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 9f55456fa4b..1d426ee9798 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -2973,9 +2973,7 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities): output = check_output('ip -6 route list dev bond199') print(output) - self.assertRegex(output, 'abcd::/16') - self.assertRegex(output, 'src') - self.assertRegex(output, '2001:1234:56:8f63::2') + self.assertIn('abcd::/16 via 2001:1234:56:8f63::1:1 proto static src 2001:1234:56:8f63::2', output) def test_ip_link_mac_address(self): copy_network_unit('25-address-link-section.network', '12-dummy.netdev')