Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

samples/drivers/mbox: Fix test regex #87130

Merged
merged 1 commit into from
Mar 22, 2025

Conversation

aescolar
Copy link
Member

In 9d7ee12
the regex used to verify the sample is doing what it should was changed in a way in which it cannot possibly pass.
Let's fix it.

While at it, in the same commit, the simulator version of the test was merged with the real_hw version, but the test name kept "real_hw" which is now misleading => let's fix it.

And let's set as integration platform the simulated target, so it can actually be runtime tested in CI.

To reproduce the issue run
twister -p nrf5340bsim/nrf5340/cpuapp -T samples/drivers/mbox -s sample.drivers.mbox.real_hw
and see it timeout

In 9d7ee12
the regex used to verify the sample is doing what it should was changed
in a way in which it cannot possibly pass.
Let's fix it.

While at it, in the same commit, the simulator version of the test was
merged with the real_hw version, but the test name kept "real_hw" which
is now missleading => let's fix it.

And let's set as integration platform the simulated target, so it
can actually be runtime tested in CI.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
@aescolar aescolar marked this pull request as ready for review March 14, 2025 16:06
@aescolar aescolar added the bug The issue is a bug, or the PR is fixing a bug label Mar 14, 2025
@aescolar aescolar requested a review from hakehuang March 17, 2025 09:25
Copy link
Collaborator

@hakehuang hakehuang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the fixing.

@kartben kartben merged commit 7250293 into zephyrproject-rtos:main Mar 22, 2025
24 checks passed
@aescolar aescolar deleted the fix_mbox_sample_test branch March 23, 2025 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: mbox area: Samples Samples bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants