mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
test-network: wait for addresses are not in tentative state
This commit is contained in:
parent
39373cb984
commit
571f953934
@ -376,7 +376,7 @@ DHCP={}
|
||||
# IPv6, but we want to wait for both
|
||||
for _ in range(10):
|
||||
out = subprocess.check_output(['ip', 'a', 'show', 'dev', self.iface])
|
||||
if b'state UP' in out and b'inet6 2600' in out and b'inet 192.168' in out:
|
||||
if b'state UP' in out and b'inet6 2600' in out and b'inet 192.168' in out and b'tentative' not in out:
|
||||
break
|
||||
time.sleep(1)
|
||||
else:
|
||||
|
@ -557,7 +557,7 @@ class Utilities():
|
||||
if i > 0:
|
||||
time.sleep(1)
|
||||
output = check_output(f'ip {ipv} address show dev {link} scope {scope}')
|
||||
if re.search(address_regex, output):
|
||||
if re.search(address_regex, output) and 'tentative' not in output:
|
||||
break
|
||||
else:
|
||||
self.assertRegex(output, address_regex)
|
||||
|
Loading…
Reference in New Issue
Block a user