twister: testcases skipped by ztest_test_skip() have reason "Unknown" in report #42414
Labels
area: Twister
Twister
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
Describe the bug
When testcase written in ztest framework is skipped by
ztest_test_skip()
function, next it is placed in report with status "Unknown". For example in source code of test:zephyr/tests/kernel/common/src/main.c
it can be observed, that testcasetest_bitfield
will be skipped on ARM boards:As result after perform this test on some ARM board (for example
nrf52840dk_nrf52840
, it can be observed following entry intwister_report.xml
ortwister.json
:To Reproduce
Steps to reproduce the behavior:
scripts/twister --device-testing --device-serial /dev/ttyACM0 --json-report -p nrf52840dk_nrf52840 -T tests/kernel/common/
twister_report.xml
ortwister.json
reports, especially entry for testcasekernel.common.bitfield
Expected behavior
Reason of performed skip should be more readable, because in this situation it is known reason of this skip, for example it should be like this:
Impact
Report with such skip is suspicious, because it is not clear if this skip is performed as intentional skip in test's source code or if it is made by mistake/bug.
Environment (please complete the following information):
zephyr-sdk-0.13.1
Additional context
I will crate PR with suitable fix soon.
The text was updated successfully, but these errors were encountered: