mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-26 10:03:40 +03:00
test-network: use wait_online() in test_link_local_addressing()
This also disables IPv6AcceptRA= to speed up the test.
This commit is contained in:
parent
d06f30fc73
commit
2dcfcc08d9
@ -3,3 +3,4 @@ Name=test1
|
||||
|
||||
[Network]
|
||||
LinkLocalAddressing=yes
|
||||
IPv6AcceptRA=no
|
||||
|
@ -1204,13 +1204,12 @@ class NetworkdNetWorkTests(unittest.TestCase, Utilities):
|
||||
def test_link_local_addressing(self):
|
||||
self.copy_unit_to_networkd_unit_path('25-link-local-addressing-yes.network', '11-dummy.netdev',
|
||||
'25-link-local-addressing-no.network', '12-dummy.netdev')
|
||||
self.start_networkd()
|
||||
self.start_networkd(0)
|
||||
self.wait_online(['test1:degraded', 'dummy98:carrier'])
|
||||
|
||||
self.assertTrue(self.link_exits('test1'))
|
||||
self.assertTrue(self.link_exits('dummy98'))
|
||||
|
||||
time.sleep(10)
|
||||
|
||||
output = subprocess.check_output(['ip', 'address', 'show', 'dev', 'test1']).rstrip().decode('utf-8')
|
||||
print(output)
|
||||
self.assertRegex(output, 'inet .* scope link')
|
||||
|
Loading…
x
Reference in New Issue
Block a user