test-network: use wait_online() in test_sysctl()

This also disables IPv6AcceptRA= to speed up the test.
This commit is contained in:
Yu Watanabe 2019-03-22 05:53:15 +09:00
parent 2dcfcc08d9
commit ba1e0d0612
2 changed files with 3 additions and 1 deletions

View File

@ -8,3 +8,4 @@ IPv6DuplicateAddressDetection=3
IPv6HopLimit=5
IPv4ProxyARP=true
IPv6ProxyNDP=true
IPv6AcceptRA=no

View File

@ -1262,7 +1262,8 @@ class NetworkdNetWorkTests(unittest.TestCase, Utilities):
def test_sysctl(self):
self.copy_unit_to_networkd_unit_path('25-sysctl.network', '12-dummy.netdev')
self.start_networkd()
self.start_networkd(0)
self.wait_online(['dummy98:degraded'])
self.assertTrue(self.link_exits('dummy98'))