diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-11-02 09:48:44 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-11-03 16:31:46 +0100 |
commit | 9a4720a9efee04c56cac16ab8e45ca1dfc9182dd (patch) | |
tree | 275bd2c7447f033f90272b01bc9fb74f3c55bae5 /test/test-network | |
parent | network: drop error cause in log message (diff) | |
download | systemd-9a4720a9efee04c56cac16ab8e45ca1dfc9182dd.tar.xz systemd-9a4720a9efee04c56cac16ab8e45ca1dfc9182dd.zip |
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.
Diffstat (limited to 'test/test-network')
-rwxr-xr-x | test/test-network/systemd-networkd-tests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index ff632740fc..632d0691a7 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: |