lib/usb.pm

SYNOPSIS

Utils for working with USB devices.

list_usb_devices

list_usb_devices();

Returns an array of hashes with the following information about all detected USB devices: - bus: System bus number - device: Device number on the bus - vendor: Vendor ID - product: Vendor-specific product ID - name: Human-readable description returned by the device

check_usb_devices();

Check that all devices listed in REQUIRED_USB_DEVICES job setting are connected to the test machine. The variable must contain a comma-separated list of vendor:product IDs.