From 092e49d020aede54cf5fb586b1d8ab32defa9d67 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Tue, 27 May 2025 07:47:28 +0800 Subject: [PATCH] build: unset $TMUX when running tests (#34178) This prevents Nvim TUI running in tests from thinking it's inside tmux. Another solution is make :terminal unset $TMUX instead, but I'm not sure if that'll break some other use cases. --- cmake/RunTests.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/RunTests.cmake b/cmake/RunTests.cmake index 6d123060b6..5b35c3cc28 100644 --- a/cmake/RunTests.cmake +++ b/cmake/RunTests.cmake @@ -7,6 +7,7 @@ set(ENV{XDG_DATA_HOME} ${BUILD_DIR}/Xtest_xdg/share) set(ENV{XDG_STATE_HOME} ${BUILD_DIR}/Xtest_xdg/state) unset(ENV{XDG_DATA_DIRS}) unset(ENV{NVIM}) # Clear $NVIM in case tests are running from Nvim. #11009 +unset(ENV{TMUX}) # Nvim TUI shouldn't think it's running in tmux. #34173 # TODO(dundargoc): The CIRRUS_CI environment variable isn't passed to here from # the main CMakeLists.txt, so we have to manually pass it to this script and