From 77ecdb7ec9685734930bc7df2584e4328db55b7a Mon Sep 17 00:00:00 2001 From: James McCoy Date: Fri, 5 Jan 2024 14:07:34 -0500 Subject: [PATCH] fix(test): call separate_arguments() correctly to honor $BUSTED_ARGS (#26905) separate_arguments() doesn't operate in place on a variable. It expects a string argument to parse and stores the results in the specified variable. (cherry picked from commit 52e6059415ba40b955267a9b447b5c57fc45b397) --- cmake/RunTests.cmake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmake/RunTests.cmake b/cmake/RunTests.cmake index fe346661b5..cb221ae847 100644 --- a/cmake/RunTests.cmake +++ b/cmake/RunTests.cmake @@ -36,8 +36,7 @@ if(BUSTED_OUTPUT_TYPE STREQUAL junit) set(EXTRA_ARGS OUTPUT_FILE ${BUILD_DIR}/${TEST_TYPE}test-junit.xml) endif() -set(BUSTED_ARGS $ENV{BUSTED_ARGS}) -separate_arguments(BUSTED_ARGS) +separate_arguments(BUSTED_ARGS NATIVE_COMMAND $ENV{BUSTED_ARGS}) if(DEFINED ENV{TEST_TAG} AND NOT "$ENV{TEST_TAG}" STREQUAL "") list(APPEND BUSTED_ARGS --tags $ENV{TEST_TAG})