1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-23 17:34:00 +03:00

test-network: fix timeout argument for wait_online()

This commit is contained in:
Yu Watanabe 2019-04-01 00:08:16 +09:00
parent 2f9859baa8
commit c7f070bd4a

View File

@ -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):