Skip to content

Commit d8be41c

Browse files
decsnykartben
authored andcommitted
tests: flash: common: Add disable spi nor case
Since the test is hardcoded to prioritize testing a spi nor flash if there is one, add a twister case for disabling that config in case if a platform should also test some other flash which is present, such as internal SOC flash. I.e, relevant platforms would be those which have both internal and spi nor flash enabled in DT. Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
1 parent d48f2f4 commit d8be41c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/drivers/flash/common/testcase.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,7 @@ tests:
126126
platform_allow:
127127
- nrf52840dk/nrf52840
128128
- nrf5340dk/nrf5340/cpuapp
129+
drivers.flash.common.disable_spi_nor:
130+
filter: dt_compat_enabled("soc-nv-flash") and dt_compat_enabled("jedec,spi-nor")
131+
extra_args:
132+
- CONFIG_SPI_NOR=n

0 commit comments

Comments
 (0)