cmake/RunTests.cmake: fix TEST_TAG/TEST_FILTER [ci skip] #10371

Followup to f1f9a2f97.
The mentioned example there did not work after all, likely due to
changing quoting during PR review.
This commit is contained in:
Daniel Hahler
2019-06-29 19:15:48 +02:00
committed by Justin M. Keyes
parent e9f1bdabb8
commit 39ba35b38d

View File

@@ -30,11 +30,11 @@ set(BUSTED_ARGS $ENV{BUSTED_ARGS})
separate_arguments(BUSTED_ARGS)
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})
endif()
if(DEFINED ENV{TEST_FILTER} AND NOT "$ENV{TEST_FILTER}" STREQUAL "")
list(APPEND BUSTED_ARGS --filter="$ENV{TEST_FILTER}")
list(APPEND BUSTED_ARGS --filter $ENV{TEST_FILTER})
endif()
# TMPDIR: use relative test path (for parallel test runs / isolation).