Merge pull request #26907 from jamessan/backport-26905-to-release-0.9

[Backport release-0.9] fix(test): call separate_arguments() correctly to honor $BUSTED_ARGS (#26905)
This commit is contained in:
James McCoy 2024-01-05 14:49:59 -05:00 committed by GitHub
commit 0aab111c6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,8 +36,7 @@ if(BUSTED_OUTPUT_TYPE STREQUAL junit)
set(EXTRA_ARGS OUTPUT_FILE ${BUILD_DIR}/${TEST_TYPE}test-junit.xml) set(EXTRA_ARGS OUTPUT_FILE ${BUILD_DIR}/${TEST_TYPE}test-junit.xml)
endif() endif()
set(BUSTED_ARGS $ENV{BUSTED_ARGS}) separate_arguments(BUSTED_ARGS NATIVE_COMMAND $ENV{BUSTED_ARGS})
separate_arguments(BUSTED_ARGS)
if(DEFINED ENV{TEST_TAG} AND NOT "$ENV{TEST_TAG}" STREQUAL "") if(DEFINED ENV{TEST_TAG} AND NOT "$ENV{TEST_TAG}" STREQUAL "")
list(APPEND BUSTED_ARGS --tags $ENV{TEST_TAG}) list(APPEND BUSTED_ARGS --tags $ENV{TEST_TAG})