summaryrefslogtreecommitdiffstats
path: root/Tests/CheckSourceTree
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-10-13 14:47:16 (GMT)
committerBrad King <brad.king@kitware.com>2022-10-13 14:49:41 (GMT)
commit2de1458c3c325516f738a66a25f7268885c5264b (patch)
tree2ef8065f5da636bb9276795ac3c12c2abe2e7e0f /Tests/CheckSourceTree
parent0dfd939077b7df22c55b308a221f952439acb3b8 (diff)
downloadCMake-2de1458c3c325516f738a66a25f7268885c5264b.zip
CMake-2de1458c3c325516f738a66a25f7268885c5264b.tar.gz
CMake-2de1458c3c325516f738a66a25f7268885c5264b.tar.bz2
Tests: Teach CheckSourceTree test to clean up some specific known files
Some nightly builds occasionally leave some log files behind due to local configuration. Remove them before checking the source tree since they are known to not be CMake bugs leaving behind source tree modifications in the test suite.
Diffstat (limited to 'Tests/CheckSourceTree')
-rw-r--r--Tests/CheckSourceTree/check.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/CheckSourceTree/check.cmake b/Tests/CheckSourceTree/check.cmake
index c2e3529..a59ffb5 100644
--- a/Tests/CheckSourceTree/check.cmake
+++ b/Tests/CheckSourceTree/check.cmake
@@ -3,6 +3,13 @@ if(DEFINED ENV{CTEST_REAL_HOME})
set(ENV{HOME} "$ENV{CTEST_REAL_HOME}")
endif()
+file(GLOB known_files
+ "${CMake_SOURCE_DIR}/Tests/JavaExportImport/InstallExport/hs_err_pid*.log"
+ )
+if(known_files)
+ file(REMOVE ${known_files})
+endif()
+
execute_process(
COMMAND "${GIT_EXECUTABLE}" status
WORKING_DIRECTORY "${CMake_SOURCE_DIR}"