tests: logging/dictionary: limit allowed platforms

Instead of using filter (which is expensive in terms of CI as
it needs to run cmake on everything to get the full kconfigs
before filtering can be done), change that to a curated list
of allowed platforms. This avoids the expensive filtering
operation, yet can still run on some emulated platforms to
verify the dictionary output.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2024-08-13 12:34:19 -07:00 committed by Anas Nashif
commit c4e3afe621

View file

@ -1,14 +1,20 @@
common:
# For twister runs, only logging backends with in hexidecimal format
# are supported. Currently, only UART logging backend does that.
filter: CONFIG_LOG_BACKEND_UART and CONFIG_LOG_BACKEND_UART_OUTPUT_DICTIONARY
and CONFIG_LOG_BACKEND_UART_OUTPUT_DICTIONARY_HEX
tests:
logging.dictionary:
tags: logging
# So platform_allow list needs to limit to those platforms.
platform_allow:
- mps2/an385
- qemu_cortex_a53
- qemu_riscv32
- qemu_riscv64
- qemu_x86
- qemu_x86_64
integration_platforms:
- qemu_x86
- qemu_x86_64
tests:
logging.dictionary:
tags: logging
harness: pytest
harness_config:
pytest_root:
@ -24,6 +30,3 @@ tests:
- "pytest/test_logging_dictionary.py"
pytest_args:
- "--fpu"
integration_platforms:
- qemu_x86
- qemu_x86_64