spi_flash tests: Fix exclusion of new API tests in legacy mode

This commit is contained in:
Angus Gratton
2019-10-28 10:32:59 +11:00
committed by Angus Gratton
parent fbdedee4cb
commit 510ec904c9

View File

@ -1,7 +1,4 @@
idf_component_register(SRC_DIRS "."
INCLUDE_DIRS "."
EXCLUDE_SRCS "test_esp_flash.c" "test_partition_ext.c"
REQUIRES unity test_utils spi_flash bootloader_support app_update)
if(CONFIG_SPI_FLASH_USE_LEGACY_IMPL)
set(COMPONENT_SRCEXCLUDE "test_esp_flash.c" "test_partition_ext.c")
endif()