led¶
Source code: led.py
A factory test for the led function.
Description¶
Uses ectool to control the onboard LED light, and lets either operator or SMT fixture confirm LED functionality.
Test Procedure¶
- Operator inserts the power to the correct usb_c (if required). 
- Operator checks the led color and responses the colors in the UI. 
- Repeats step 1 and 2 for each led. 
Dependency¶
- Device API - cros.factory.device.led.
- Device API - cros.factory.device.usb_cfor led controlled by power status.
Examples¶
An example:
{
  "pytest_name": "led",
  "args": {
    "challenge": true,
    "colors": [
      ["LEFT", "RED"],
      ["LEFT", "OFF"],
      ["RIGHT", "RED"],
      ["RIGHT", "OFF"]
    ]
  }
}
An example for led controlled by power status:
{
  "pytest_name": "led",
  "args": {
    "challenge": true,
    "colors": [
      ["POWER", "BLUE", 0],
      ["POWER", "OFF", 0],
      ["POWER", "BLUE", 1],
      ["POWER", "OFF", 1]
    ]
  }
}
Test Arguments¶
| Name | Type | Description | 
|---|---|---|
| bft_fixture | dict, None | (optional; default:  
 The default value of  | 
| challenge | bool | (optional; default:  | 
| colors | list | (optional; default:  | 
| group_by_led_id | bool | (optional; default:  | 
| target_leds | list, None | (optional; default:  |