[PATCH 7/9] tests: remote: allow to pass params with devname
Janusz Dziedzic
janusz.dziedzic at gmail.com
Sat Sep 26 07:26:58 EDT 2020
Allow to pass params together with device name
eg. -m mon1:1,20,1,0
Signed-off-by: Janusz Dziedzic <janusz.dziedzic at gmail.com>
---
tests/remote/config.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/remote/config.py b/tests/remote/config.py
index 5a6b728ac..1ac362ead 100644
--- a/tests/remote/config.py
+++ b/tests/remote/config.py
@@ -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
--
2.17.1
More information about the Hostap
mailing list