zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.72k stars 6.55k forks source link

tests: boards: nrf: qdec: drivers.sensor.qdec.pm_runtime fails on nrf platforms #80050

Closed nordic-piks closed 15 minutes ago

nordic-piks commented 4 days ago

Describe the bug The tests:

Observed for

To Reproduce Steps to reproduce the behavior:

  1. have nrf54h20dk/nrf54h20/cpuap connected
  2. go to your zephyr dir
  3. call ./scripts/twister -T tests/boards/nrf/qdec/ -p nrf54h20dk/nrf54h20/cpuapp --device-testing --device-serial /dev/ttyACM0 -v --inline-logs
  4. See console output with error

Expected behavior Valid console output

Impact Not clear

Logs and console output

*** Booting Zephyr OS build v3.7.0-4578-g829c03bcdca3 ***
Running TESTSUITE qdec_sensor
===================================================================
START - test_qdec_readings
 PASS - test_qdec_readings in 3.301 seconds
===================================================================
START - test_sensor_channel_get
 PASS - test_sensor_channel_get in 0.301 seconds
===================================================================
START - test_sensor_channel_get_empty

    Assertion failed at ../../../../../../../../../../zephyr/zephyr/tests/boards/nrf/qdec/src/main.c:332: qdec_sensor_test_sensor_channel_get_empty: (val.val1 == 0 is false)
Expected no readings but got: -2
 FAIL - test_sensor_channel_get_empty in 0.220 seconds
===================================================================
START - test_sensor_channel_get_negative
 PASS - test_sensor_channel_get_negative in 0.101 seconds
===================================================================
START - test_sensor_sample_fetch
 PASS - test_sensor_sample_fetch in 0.001 seconds
===================================================================
START - test_sensor_trigger_set
QDEC reading: 11
 PASS - test_sensor_trigger_set in 0.045 seconds
===================================================================
START - test_sensor_trigger_set_and_disable
 PASS - test_sensor_trigger_set_and_disable in 0.666 seconds
===================================================================
START - test_sensor_trigger_set_negative
 PASS - test_sensor_trigger_set_negative in 0.001 seconds
===================================================================
TESTSUITE qdec_sensor failed.

------ TESTSUITE SUMMARY START ------

SUITE FAIL -  87.50% [qdec_sensor]: pass = 7, fail = 1, skip = 0, total = 8 duration = 4.636 seconds
 - PASS - [qdec_sensor.test_qdec_readings] duration = 3.301 seconds
 - PASS - [qdec_sensor.test_sensor_channel_get] duration = 0.301 seconds
 - FAIL - [qdec_sensor.test_sensor_channel_get_empty] duration = 0.220 seconds
 - PASS - [qdec_sensor.test_sensor_channel_get_negative] duration = 0.101 seconds
 - PASS - [qdec_sensor.test_sensor_sample_fetch] duration = 0.001 seconds
 - PASS - [qdec_sensor.test_sensor_trigger_set] duration = 0.045 seconds
 - PASS - [qdec_sensor.test_sensor_trigger_set_and_disable] duration = 0.666 seconds
 - PASS - [qdec_sensor.test_sensor_trigger_set_negative] duration = 0.001 seconds

------ TESTSUITE SUMMARY END ------

===================================================================
PROJECT EXECUTION FAILED

There are expected ping/pong messages.

Environment (please complete the following information):

nordic-piks commented 4 days ago

Most probably due to https://github.com/zephyrproject-rtos/zephyr/pull/78660