Documentation ¶
Overview ¶
Package dutinfo provides help function to work with DUT info.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertDut ¶
func ConvertDut(data *ufspb.ChromeOSDeviceData) (dut *tlw.Dut, err error)
ConvertDut converts USF data to local representation of Dut instance.
func GenerateServodParams ¶
func GenerateServodParams(data *ufspb.ChromeOSDeviceData, o *tlw.ServodOptions) (cmd []string, err error)
GenerateServodParams generates servod command based on device info. Expected output parameters for servod:
"BOARD=${VALUE}" - name of DUT board. "MODEL=${VALUE}" - name of DUT model. "PORT=${VALUE}" - port specified to run servod on servo-host. "SERIAL=${VALUE}" - serial number of root servo. "CONFIG=cr50.xml" - special parameter, for extra ability of CR50. "REC_MODE=1" - start servod in recovery-mode, if root device found then servod will start event not all components detected.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.