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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user