Using ztest_run_all() with predicates marks previously competed tests as skipped #75817
Unanswered
brgoldbach
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to set up unit tests with the ZTEST Framework to run directly on my embedded hardware. The test code is similar to this custom test_main example from the documentation with tests set to run at different power phases.
The issue I am having is that tests that run at PWR_PHASE_0 and pass (or fail for that matter) are subsequently marked as skipped when the following ztest_run_all() for the next power phase is ran.
I understand that they were technically skipped for the following phases, but it seems odd to have that override the previous valid test result in the test suite summary.
Is there any way around this interaction, so that the test summary properly shows the results, instead of all but the last phase of tests showing skipped?
Thanks,
-Brett
Beta Was this translation helpful? Give feedback.
All reactions