From c7ccb26260e763cd5fde5f635da6889c736262fd Mon Sep 17 00:00:00 2001 From: Jun T Date: Fri, 10 Sep 2021 18:21:29 +0900 Subject: [PATCH] do not write into user's ~/.bash_history --- cmake/RunTests.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/RunTests.cmake b/cmake/RunTests.cmake index 9630389ce0..58b758a21c 100644 --- a/cmake/RunTests.cmake +++ b/cmake/RunTests.cmake @@ -49,6 +49,9 @@ endif() set(ENV{TMPDIR} "${BUILD_DIR}/Xtest_tmpdir/${TEST_PATH}") execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory $ENV{TMPDIR}) +# HISTFILE: do not write into user's ~/.bash_history +set(ENV{HISTFILE} "/dev/null") + set(ENV{SYSTEM_NAME} ${CMAKE_HOST_SYSTEM_NAME}) # used by test/helpers.lua. execute_process( COMMAND ${BUSTED_PRG} -v -o test.busted.outputHandlers.${BUSTED_OUTPUT_TYPE}