Skip to content

Commit a6b80d8

Browse files
authored
Merge pull request #1558 from kbenzie/benie/cts-always-disable-gtest-color
[CTS] Ensure GoogleTest does not output color
2 parents 3eda0d5 + 98af36b commit a6b80d8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/conformance/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ function(add_test_adapter name adapter)
2020
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
2121
)
2222

23+
set(testEnv
24+
UR_ADAPTERS_FORCE_LOAD="$<TARGET_FILE:ur_${adapter}>"
25+
GTEST_COLOR=no
26+
)
2327
set_tests_properties(${TEST_NAME} PROPERTIES
24-
ENVIRONMENT "UR_ADAPTERS_FORCE_LOAD=\"$<TARGET_FILE:ur_${adapter}>\""
28+
ENVIRONMENT "${testEnv}"
2529
LABELS "conformance;${adapter}")
2630
endfunction()
2731

0 commit comments

Comments
 (0)