From c4e3afe621bff660f8e21813b1bf8b5f1805c52a Mon Sep 17 00:00:00 2001 From: Daniel Leung Date: Tue, 13 Aug 2024 12:34:19 -0700 Subject: [PATCH] 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 --- tests/subsys/logging/dictionary/testcase.yaml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/tests/subsys/logging/dictionary/testcase.yaml b/tests/subsys/logging/dictionary/testcase.yaml index 9ef505057f2..e47890624d8 100644 --- a/tests/subsys/logging/dictionary/testcase.yaml +++ b/tests/subsys/logging/dictionary/testcase.yaml @@ -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 + # 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 - integration_platforms: - - qemu_x86 - - qemu_x86_64 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