Mark FISH_FORCE_COLOR in individual test targets

This allows running individual tests to produce colorized output.
No need to relnote this.
This commit is contained in:
ridiculousfish 2022-04-10 13:40:51 -07:00
parent cfbebb7201
commit 5beb3a1141

View File

@ -159,6 +159,7 @@ foreach(CHECK ${FISH_CHECKS})
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/tests
)
set_tests_properties(${CHECK_NAME} PROPERTIES SKIP_RETURN_CODE ${SKIP_RETURN_CODE})
set_tests_properties(${CHECK_NAME} PROPERTIES ENVIRONMENT FISH_FORCE_COLOR=1)
add_test_target("${CHECK_NAME}")
endforeach(CHECK)
@ -171,5 +172,6 @@ foreach(PEXPECT ${PEXPECTS})
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/tests
)
set_tests_properties(${PEXPECT} PROPERTIES SKIP_RETURN_CODE ${SKIP_RETURN_CODE})
set_tests_properties(${PEXPECT} PROPERTIES ENVIRONMENT FISH_FORCE_COLOR=1)
add_test_target("${PEXPECT}")
endforeach(PEXPECT)