From 510ec904c97a9df1337521b8b5b470d39f12345a Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Mon, 28 Oct 2019 10:32:59 +1100 Subject: [PATCH] spi_flash tests: Fix exclusion of new API tests in legacy mode --- components/spi_flash/test/CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/components/spi_flash/test/CMakeLists.txt b/components/spi_flash/test/CMakeLists.txt index 831e142120..7c5bc7fe89 100644 --- a/components/spi_flash/test/CMakeLists.txt +++ b/components/spi_flash/test/CMakeLists.txt @@ -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()