From 9a4720a9efee04c56cac16ab8e45ca1dfc9182dd Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 2 Nov 2018 17:48:44 +0900 Subject: [PATCH] test-network: wait after removing links After ec6a47044a2ab321ae6427ce0d9fa3f6a17544a8, networkd starts soon after removing links used by previous test. That causes some racy situation of removing links and detecting links by networkd. --- test/test-network/systemd-networkd-tests.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index ff632740fc2..632d0691a7a 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -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: -- 2.47.3