whale_check_voltage¶
Source code: whale_check_voltage.py
Checks voltages.
Description¶
Internal references¶
go/cros_whale_slides
Test Procedure¶
This is an automatic test that doesn’t need any user interaction.
Dependency¶
bft_fixture
Whale
Examples¶
An example of checking green LED voltage:
{
"pytest_name": "whale_check_voltage",
"args": {
"bft_fixture": {
"class_name":
"cros.factory.test.fixture.dummy_bft_fixture.DummyBFTFixture",
"params": {}
},
"criteria": {
"krill_vc_connector_ina8": ["GREEN_LED", 1600, 100]
},
"timeout_secs": 30
}
}
Test Arguments¶
Name |
Type |
Description |
---|---|---|
bft_fixture |
dict |
A dictionary with the following items:
The default value of |
criteria |
dict |
Criteria of measured voltage. A dict {ina_name: (schematic_name, expected_voltage, relative_tolerance)} where the unit of voltage is mV |
timeout_secs |
int, float |
(optional; default: |
poll_interval_secs |
int, float |
(optional; default: |