Skip to content

Commit ea109ce

Browse files
dcpleungnashif
authored andcommitted
tests: logging/dictionary: filter for backend
Since only the UART backend supports output in hexidecimal form with dictionary logging, so filter for that or else the pytest would fail due to none, or wrong captured output. Signed-off-by: Daniel Leung <[email protected]>
1 parent 1fd9dc8 commit ea109ce

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

tests/subsys/logging/dictionary/testcase.yaml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
common:
2-
# For twister runs, the following arch/platforms use logging backends
3-
# which do not output dictionary logging in hexidecimal format,
4-
# and thus cannot be used for testing. Currently, only UART
5-
# logging backend does that.
6-
arch_exclude:
7-
- posix
8-
platform_exclude:
9-
- qemu_xtensa
10-
- qemu_xtensa/dc233c/mmu
2+
# For twister runs, only logging backends with in hexidecimal format
3+
# are supported. Currently, only UART logging backend does that.
4+
filter: CONFIG_LOG_BACKEND_UART and CONFIG_LOG_BACKEND_UART_OUTPUT_DICTIONARY
5+
and CONFIG_LOG_BACKEND_UART_OUTPUT_DICTIONARY_HEX
116
tests:
127
logging.dictionary:
138
tags: logging

0 commit comments

Comments
 (0)