mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
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:
parent
777afa9f07
commit
8456b9e7db
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user