mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-18 00:02:21 +08:00
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.
This commit is contained in:
@@ -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}"
|
||||
|
Reference in New Issue
Block a user