]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: remote: Allow passing of parameters with devname
authorJanusz Dziedzic <janusz.dziedzic@gmail.com>
Sat, 26 Sep 2020 11:26:58 +0000 (13:26 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 9 Oct 2020 08:19:23 +0000 (11:19 +0300)
Allow parameters to be passed together with the device name. For
example, -m mon1:1,20,1,0

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
tests/remote/config.py

index 5a6b728ac10fed70260647b951467cb43fd8fcd7..1ac362ead3f36632d5debd6fa690ed2d9d01a981 100644 (file)
@@ -69,6 +69,8 @@ def get_devices(filename="cfg.py"):
 def get_device(devices, name=None, flags=None, lock=False):
     if name is None and flags is None:
         raise Exception("Failed to get device")
+    word = name.split(":")
+    name = word[0]
     for device in devices:
         if device['name'] == name:
             return device