zephyr/samples/subsys/pm/device_pm/sample.yaml
Flavio Ceolin 178cfd094c samples: pm: Fix device pm sample
"child resuming" text is printed when dummy_device_pm_ctrl is
called. The driver is using the async api, this means that this call
will happen only when the worqueue runs what will happen only when
this thread blocks waiting on the conditional variable.

The last thing is, the dummy driver was putting the parent driver
asynchronously consequently the "parent suspending" message would just
print after "Device PM sample app complete". Just use the sync API to
get these messages printed in the expected order.

Fixes #35336

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2021-05-17 15:40:58 -04:00

19 lines
527 B
YAML

sample:
name: Device Idle Power Management
tests:
sample.power.ospm.dev_idle_pm:
platform_allow: nrf52840dk_nrf52840 nrf52dk_nrf52832
tags: power
harness: console
harness_config:
type: multi_line
regex:
- "Device PM sample app start"
- "parent resuming\\.\\."
- "Async wakeup request queued"
- "child resuming\\.\\."
- "Dummy device resumed"
- "child suspending\\.\\."
- "parent suspending\\.\\."
- "Device PM sample app complete"