]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: drop redundant operstate checking 12796/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 14 Jun 2019 07:50:07 +0000 (16:50 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 14 Jun 2019 07:50:07 +0000 (16:50 +0900)
test/test-network/systemd-networkd-tests.py

index 203592bb12284fa61c3e6b6915603482671cf70d..7c87345bf35a21f1247dcdb520a638b7e7e09cdc 100755 (executable)
@@ -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')