test-network: wait after removing links

After ec6a47044a, networkd starts
soon after removing links used by previous test. That causes
some racy situation of removing links and detecting links by networkd.
This commit is contained in:
Yu Watanabe
2018-11-04 00:31:46 +09:00
parent 7946d57f18
commit 9a4720a9ef
@@ -58,6 +58,7 @@ class Utilities():
for link in links:
if os.path.exists(os.path.join('/sys/class/net', link)):
subprocess.call(['ip', 'link', 'del', 'dev', link])
time.sleep(1)
def read_ipv6_sysctl_attr(self, link, attribute):
with open(os.path.join(os.path.join(network_sysctl_ipv6_path, link), attribute)) as f: