Skip to content

Commit fb74199

Browse files
authored
Unbuffer by default on non-CI (#6693)
1 parent 9191fe5 commit fb74199

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

CMakeLists.txt

+5-3
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@ endfunction()
6060

6161
option(PROFILE_TESTS "Profile tests" OFF)
6262

63-
# Add CCF_PYTHON_PRELAUNCH=unbuffer to env when calling cmake to get coloured
64-
# test output
65-
set(PYTHON "$ENV{CCF_PYTHON_PRELAUNCH}" python3)
63+
if("$ENV{CI}" STREQUAL "")
64+
set(PYTHON unbuffer python3)
65+
else()
66+
set(PYTHON python3)
67+
endif()
6668

6769
set(DISTRIBUTE_PERF_TESTS
6870
""

0 commit comments

Comments
 (0)