diff --git a/tests/subsys/testsuite/fff_fake_contexts/CMakeLists.txt b/tests/subsys/testsuite/fff_fake_contexts/CMakeLists.txt index d4cf1a06bf6..ad60f9a414b 100644 --- a/tests/subsys/testsuite/fff_fake_contexts/CMakeLists.txt +++ b/tests/subsys/testsuite/fff_fake_contexts/CMakeLists.txt @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 cmake_minimum_required(VERSION 3.20.0) -if(BOARD STREQUAL unit_testing/unit_testing) +if(BOARD STREQUAL "unit_testing" OR BOARD STREQUAL "unit_testing/unit_testing") find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) set(target testbinary) else() diff --git a/tests/ztest/base/CMakeLists.txt b/tests/ztest/base/CMakeLists.txt index 5cbbcb10894..f516aa36aec 100644 --- a/tests/ztest/base/CMakeLists.txt +++ b/tests/ztest/base/CMakeLists.txt @@ -1,7 +1,7 @@ # SPDX-License-Identifier: Apache-2.0 cmake_minimum_required(VERSION 3.20.0) -if(BOARD STREQUAL unit_testing/unit_testing) +if(BOARD STREQUAL "unit_testing" OR BOARD STREQUAL "unit_testing/unit_testing") find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) project(base) diff --git a/tests/ztest/fail/CMakeLists.txt b/tests/ztest/fail/CMakeLists.txt index 1f1b3e97faa..6a37c8efd72 100644 --- a/tests/ztest/fail/CMakeLists.txt +++ b/tests/ztest/fail/CMakeLists.txt @@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.20.0) include(ExternalProject) -if(BOARD STREQUAL unit_testing/unit_testing) +if(BOARD STREQUAL "unit_testing" OR BOARD STREQUAL "unit_testing/unit_testing") find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) set(target testbinary) # Set the target binary for the 'core' external project. The path to this must match the one set diff --git a/tests/ztest/fail/core/CMakeLists.txt b/tests/ztest/fail/core/CMakeLists.txt index 804ece66bae..9b39501a3b3 100644 --- a/tests/ztest/fail/core/CMakeLists.txt +++ b/tests/ztest/fail/core/CMakeLists.txt @@ -23,7 +23,7 @@ elseif(CONFIG_ZTEST_FAIL_TEST_UNEXPECTED_ASSUME) list(APPEND test_sources src/unexpected_assume.cpp) endif() -if(BOARD STREQUAL unit_testing/unit_testing) +if(BOARD STREQUAL "unit_testing" OR BOARD STREQUAL "unit_testing/unit_testing") find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) project(base) diff --git a/tests/ztest/zexpect/CMakeLists.txt b/tests/ztest/zexpect/CMakeLists.txt index 0b2813f48b2..70f60af4d99 100644 --- a/tests/ztest/zexpect/CMakeLists.txt +++ b/tests/ztest/zexpect/CMakeLists.txt @@ -1,7 +1,7 @@ # SPDX-License-Identifier: Apache-2.0 cmake_minimum_required(VERSION 3.20.0) -if(BOARD STREQUAL unit_testing/unit_testing) +if(BOARD STREQUAL "unit_testing" OR BOARD STREQUAL "unit_testing/unit_testing") find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) project(base)