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 <lixinx.guo@intel.com>
This commit is contained in:
Guo Lixin 2022-05-16 17:51:22 +08:00 committed by Anas Nashif
parent 265080277c
commit 80b2d7722d
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
tests:
kernel.memory_protection.sys_sem:
filter: CONFIG_ARCH_HAS_USERSPACE
tags: kernel userspace
testcases:
- sem_take_no_wait

View File

@ -1,7 +1,7 @@
tests:
libraries.libc.sprintf:
extra_args: CONF_FILE=prj.conf
filter: not CONFIG_SOC_MCIMX7_M4
filter: not CONFIG_SOC_MCIMX7_M4 and CONFIG_STDOUT_CONSOLE
integration_platforms:
- qemu_x86
platform_exclude: native_posix native_posix_64 nrf52_bsim