suspend_stress¶
Source code: suspend_stress.py
Suspend and resume device with given cycles.
Description¶
Suspends and resumes the device an adjustable number of times for adjustable
random lengths of time.
See suspend_stress_test
for more details.
Test Procedure¶
This is an automated test without user interaction.
When started, the test will try to suspend and resume by given arguments. Will fail if unexpected reboot, crash or error found.
Dependency¶
power manager
powerd
.power manager tool
suspend_stress_test
.
Examples¶
To suspend/resume in 1 cycle, suspend in 5~10 seconds, resume in 5~10 seconds,
and suspend to idle by writing freeze to /sys/power/state
:
{
"pytest_name": "suspend_stress"
}
Test Arguments¶
Name |
Type |
Description |
---|---|---|
cycles |
int |
(optional; default: |
suspend_delay_max_secs |
int |
(optional; default: |
suspend_delay_min_secs |
int |
(optional; default: |
resume_delay_max_secs |
int |
(optional; default: |
resume_delay_min_secs |
int |
(optional; default: |
suspend_time_margin_min_secs |
int |
(optional; default: |
suspend_time_margin_max_secs |
int |
(optional; default: |
ignore_wakeup_source |
str, None |
(optional; default: |
backup_rtc |
bool |
(optional; default: |
memory_check |
bool |
(optional; default: |
memory_check_size |
int |
(optional; default: |
fw_errors_fatal |
bool |
(optional; default: |
premature_wake_fatal |
bool |
(optional; default: |
late_wake_fatal |
bool |
(optional; default: |
pre_suspend_command |
str |
(optional; default: |
post_resume_command |
str |
(optional; default: |