From: Janusz Dziedzic Date: Sat, 26 Sep 2020 11:26:58 +0000 (+0200) Subject: tests: remote: Allow passing of parameters with devname X-Git-Tag: hostap_2_10~919 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8456b9e7db3766e38de9a0c6174cdc337abdfabe;p=thirdparty%2Fhostap.git 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 --- 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