1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-08 08:58:27 +03:00

test-network: check route more strictly

This commit is contained in:
Yu Watanabe 2023-07-03 16:03:50 +09:00
parent 6e8477edd3
commit 7e30527806

View File

@ -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')