diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-05-31 10:45:20 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-06-07 00:27:26 +0200 |
commit | a49c92fc5b12cd9645b8638b409442ad3ca652bc (patch) | |
tree | d64221af1c83292b7ab3d1009478d7c1393c225e | |
parent | bb96b8219dc6a776bf0e765cfbc16a833e98b351 (diff) | |
download | rneovim-a49c92fc5b12cd9645b8638b409442ad3ca652bc.tar.gz rneovim-a49c92fc5b12cd9645b8638b409442ad3ca652bc.tar.bz2 rneovim-a49c92fc5b12cd9645b8638b409442ad3ca652bc.zip |
test: Set $NVIM_LOG_FILE to test-local path
- Do not delete it: may need to inspect it after tests finished.
- Avoids writing to stderr in cases where the test-local $XDG_DATA_HOME
was not created yet.
-rw-r--r-- | cmake/RunTests.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/RunTests.cmake b/cmake/RunTests.cmake index bd7b630708..5f818cc9ad 100644 --- a/cmake/RunTests.cmake +++ b/cmake/RunTests.cmake @@ -3,6 +3,10 @@ set(ENV{NVIM_RPLUGIN_MANIFEST} ${WORKING_DIR}/Xtest_rplugin_manifest) set(ENV{XDG_CONFIG_HOME} ${WORKING_DIR}/Xtest_xdg/config) set(ENV{XDG_DATA_HOME} ${WORKING_DIR}/Xtest_xdg/share) +if(NOT DEFINED ENV{NVIM_LOG_FILE}) + set(ENV{NVIM_LOG_FILE} ${WORKING_DIR}/.nvimlog) +endif() + if(NVIM_PRG) set(ENV{NVIM_PRG} "${NVIM_PRG}") endif() |