Source code for labgrid.driver.lxausbmuxdriver

import attr

from .common import Driver
from ..factory import target_factory
from ..step import step
from .exception import ExecutionError
from ..util.helper import processwrapper

[docs] @target_factory.reg_driver @attr.s(eq=False) class LXAUSBMuxDriver(Driver): """The LXAUSBMuxDriver uses the usbmuxctl tool to control the USBMux hardware """ bindings = { "mux": {"LXAUSBMux", "NetworkLXAUSBMux"}, }
[docs] def __attrs_post_init__(self): super().__attrs_post_init__() if self.target.env: self.tool = self.target.env.config.get_tool('usbmuxctl') else: self.tool = 'usbmuxctl'