summaryrefslogtreecommitdiff
path: root/test/networkd-test.py
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-07-12 09:28:53 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-07-15 17:15:25 +0900
commit571f953934ad8369a1ef2761d6da1e03d3bbd48a (patch)
treea8a4675462d07d07a7b6f985135e28aa9e2039a7 /test/networkd-test.py
parent39373cb98425a7499ea65a1344947808035388d6 (diff)
downloadsystemd-571f953934ad8369a1ef2761d6da1e03d3bbd48a.tar.gz
test-network: wait for addresses are not in tentative state
Diffstat (limited to 'test/networkd-test.py')
-rwxr-xr-xtest/networkd-test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/networkd-test.py b/test/networkd-test.py
index 618237161a..b225694819 100755
--- a/test/networkd-test.py
+++ b/test/networkd-test.py
@@ -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: