]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: fix timeout argument for wait_online()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 31 Mar 2019 15:08:16 +0000 (00:08 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 1 Apr 2019 18:38:22 +0000 (03:38 +0900)
test/test-network/systemd-networkd-tests.py

index 4e4858507f8ef7919957fdc4367bdd6be9311bb1..34cf388b0c890b2767b17a9eb63ca916e3d2707d 100755 (executable)
@@ -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):