tests: remote: Allow passing of parameters with devname

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>
This commit is contained in:
Janusz Dziedzic 2020-09-26 13:26:58 +02:00 committed by Jouni Malinen
parent 777afa9f07
commit 8456b9e7db

View 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