Skip to content

Commit 80b2d77

Browse files
Guo Lixinnashif
authored andcommitted
tests: add filter of configs to avoid mismatch test running
Some test suites have different test case lists in test_main(), that conforms to different test scenarios defined in testcase.yaml. We use if statement to decide which test case list should run under specific config. But for thoses boards who do not support those configs, we will run test cases on the other side of the if statement even if it has deviated from the original test scenario. So add filter to avoid test scenario running under mismatch config. Signed-off-by: Guo Lixin <[email protected]>
1 parent 2650802 commit 80b2d77

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/kernel/mem_protect/sys_sem/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
tests:
22
kernel.memory_protection.sys_sem:
3+
filter: CONFIG_ARCH_HAS_USERSPACE
34
tags: kernel userspace
45
testcases:
56
- sem_take_no_wait

tests/lib/sprintf/testcase.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
tests:
22
libraries.libc.sprintf:
33
extra_args: CONF_FILE=prj.conf
4-
filter: not CONFIG_SOC_MCIMX7_M4
4+
filter: not CONFIG_SOC_MCIMX7_M4 and CONFIG_STDOUT_CONSOLE
55
integration_platforms:
66
- qemu_x86
77
platform_exclude: native_posix native_posix_64 nrf52_bsim

0 commit comments

Comments
 (0)