From c7f070bd4aa897ee9d278b2c6fed8a47fe761d40 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 1 Apr 2019 00:08:16 +0900 Subject: [PATCH] test-network: fix timeout argument for wait_online() --- test/test-network/systemd-networkd-tests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 4e4858507f..34cf388b0c 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):