Skip to content

Commit 145dd11

Browse files
de-nordickartben
authored andcommitted
tests/stream_flash: Improve platform filtering
Improve platform filtering of common platforms, replace extra_args with extra_configs, where applicable and add little comment on why certain options are used. Signed-off-by: Dominik Ermel <[email protected]>
1 parent 075cb21 commit 145dd11

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tests/subsys/storage/stream/stream_flash/testcase.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,21 @@ tests:
1212
integration_platforms:
1313
- nrf52840dk/nrf52840
1414
storage.stream_flash.simulator.no_explicit_erase:
15-
extra_args:
15+
filter: dt_compat_enabled("zephyr,sim-flash")
16+
extra_configs:
1617
- CONFIG_STREAM_FLASH_ERASE=n
1718
- CONFIG_FLASH_SIMULATOR_EXPLICIT_ERASE=n
1819
tags: stream_flash
1920
storage.stream_flash.no_explicit_erase:
21+
# Systems with zephyr,sim-flash are tested by simulator scenarios,
22+
# common platforms could bring them here too so filter these out.
23+
filter: not dt_compat_enabled("zephyr,sim-flash")
2024
platform_allow:
2125
- nrf54l15dk/nrf54l15/cpuapp
22-
extra_args:
26+
extra_configs:
27+
# Tests, currently, can only support single device testing
28+
# and platform enabling SPI NOR automatically brings in a device with
29+
# explicit erase requirement.
2330
- CONFIG_SPI_NOR=n
2431
storage.stream_flash.dword_wbs:
2532
extra_args: DTC_OVERLAY_FILE=unaligned_flush.overlay

0 commit comments

Comments
 (0)