twister: pytest: unstable pytest tests for shell #58747
Labels
area: Twister
Twister
bug
The issue is a bug, or the PR is fixing a bug
priority: medium
Medium impact/importance bug
Describe the bug
A newly introduced pytest test for shell using new integration of pytest with twister (#57117) is instable. It happened on some unrelated PRs that the test was still failing on qemu after 3 retries, and the whole subset had to be restarted (e.g. https://github.com/zephyrproject-rtos/zephyr/actions/runs/5143039574/jobs/9257589092).
We also found, that our hw platforms using TFM (e.g. nrf9160dk_nrf9160_ns) are failing the test due to too tight window for the test initialization.
To Reproduce
Steps to reproduce the behavior:
On hw:
scripts/twister -T samples/subsys/testsuite/pytest/shell/ -v --platform nrf9160dk_nrf9160_ns --device-testing --device-serial /dev/ttyACM0
On qemu (not always failing):
scripts/twister -T samples/subsys/testsuite/pytest/shell/ -v ---platform qemu_cortex_m3
Expected behavior
The test is stable.
Impact
Strong annoyance. Can fail unrelated PRs and then requir a manual rerun.
Logs and console output
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: