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

test-network: drop redundant operstate checking

This commit is contained in:
Yu Watanabe
2019-06-14 16:50:07 +09:00
parent df7f9afaa7
commit 4c2459c692

View File

@ -1485,9 +1485,6 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
start_networkd(0)
wait_online(['test1:degraded', 'dummy98:carrier'])
self.check_link_exists('test1')
self.check_link_exists('dummy98')
output = check_output('ip address show dev test1')
print(output)
self.assertRegex(output, 'inet .* scope link')
@ -1497,9 +1494,6 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
print(output)
self.assertNotRegex(output, 'inet6* .* scope link')
self.check_operstate('test1', 'degraded')
self.check_operstate('dummy98', 'carrier')
'''
Documentation/networking/ip-sysctl.txt
@ -2396,9 +2390,6 @@ class NetworkdDHCPClientTests(unittest.TestCase, Utilities):
print(output)
self.assertEqual(output, '')
self.check_operstate('vrf99', 'carrier')
self.check_operstate('veth99', 'routable')
def test_dhcp_client_gateway_onlink_implicit(self):
copy_unit_to_networkd_unit_path('25-veth.netdev', 'dhcp-server-veth-peer.network',
'dhcp-client-gateway-onlink-implicit.network')