From: Yu Watanabe Date: Sun, 31 Mar 2019 15:08:16 +0000 (+0900) Subject: test-network: fix timeout argument for wait_online() X-Git-Tag: v242-rc1~20^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7f070bd4aa897ee9d278b2c6fed8a47fe761d40;p=thirdparty%2Fsystemd.git test-network: fix timeout argument for wait_online() --- diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 4e4858507f8..34cf388b0c8 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -71,7 +71,6 @@ def expectedFailureIfRoutingPolicyIPProtoIsNotAvailable(): return f def setUpModule(): - os.makedirs(network_unit_file_path, exist_ok=True) os.makedirs(networkd_ci_path, exist_ok=True) @@ -187,7 +186,7 @@ class Utilities(): time.sleep(sleep_sec) def wait_online(self, links_with_operstate, timeout='20s'): - args = [wait_online_bin, f' --timeout={timeout}'] + [f'--interface={link}' for link in links_with_operstate] + args = [wait_online_bin, f'--timeout={timeout}'] + [f'--interface={link}' for link in links_with_operstate] subprocess.check_call(args) class NetworkdNetDevTests(unittest.TestCase, Utilities):