From: Yu Watanabe Date: Fri, 2 Nov 2018 08:48:44 +0000 (+0900) Subject: test-network: wait after removing links X-Git-Tag: v240~414^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9a4720a9efee04c56cac16ab8e45ca1dfc9182dd;p=thirdparty%2Fsystemd.git 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. --- 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: