Skip to content

Commit

Permalink
Unbuffer by default on non-CI
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyashton committed Dec 6, 2024
1 parent 589cf43 commit bc79fec
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ endfunction()

option(PROFILE_TESTS "Profile tests" OFF)

# Add CCF_PYTHON_PRELAUNCH=unbuffer to env when calling cmake to get coloured
# test output
set(PYTHON "$ENV{CCF_PYTHON_PRELAUNCH}" python3)
if("$ENV{CI}" STREQUAL "")
set(PYTHON unbuffer python3)
else()
set(PYTHON python3)
endif()

set(DISTRIBUTE_PERF_TESTS
""
Expand Down

0 comments on commit bc79fec

Please sign in to comment.