buzzer¶
Source code: buzzer.py
This is a buzzer test.
Description¶
This test checks the functionality of the buzzer of a ChromeOS device.
Test Procedure¶
Press space and DUT will start buzzing.
Press the number of buzz heard to pass the test or press ‘r’ to play again.
Dependency¶
None.
Examples¶
To test buzzer with default parameters on puff, add this in test list:
{
"pytest_name": "buzzer"
"args": {
"gpio_index": "382"
}
}
If you want to change the mute duration between two beeps and the duration of a beep and test buzzer on brask:
{
"pytest_name": "buzzer",
"args": {
"gpio_index": "166"
"beep_duration_secs": 0.8,
"mute_duration_secs": 1.5
}
}
Test Arguments¶
Name |
Type |
Description |
---|---|---|
beep_duration_secs |
float |
(optional; default: |
mute_duration_secs |
float |
(optional; default: |
gpio_index |
str |
Index for gpio file depending on the board |