From 93163cc1f93504976f4767480fb7d203217b0757 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 24 Aug 2006 09:47:52 -0400 Subject: ENH: Added code to remove any bad installations of CVS directories before running the test so that one failure does not need manual adjustment to get it to pass again. --- Tests/SimpleInstall/CMakeLists.txt | 2 ++ Tests/SimpleInstallS2/CMakeLists.txt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Tests/SimpleInstall/CMakeLists.txt b/Tests/SimpleInstall/CMakeLists.txt index f640ef8..b3262bb 100644 --- a/Tests/SimpleInstall/CMakeLists.txt +++ b/Tests/SimpleInstall/CMakeLists.txt @@ -166,6 +166,8 @@ ELSE(STAGE2) ) # Test directory installation. + FILE(REMOVE_RECURSE "${CMAKE_INSTALL_PREFIX}/MyTest/share/CVS") + FILE(REMOVE_RECURSE "${CMAKE_INSTALL_PREFIX}/MyTest/share/TestSubDir/CVS") INSTALL( DIRECTORY TestSubDir scripts/ DESTINATION MyTest/share PATTERN "CVS" EXCLUDE diff --git a/Tests/SimpleInstallS2/CMakeLists.txt b/Tests/SimpleInstallS2/CMakeLists.txt index f640ef8..b3262bb 100644 --- a/Tests/SimpleInstallS2/CMakeLists.txt +++ b/Tests/SimpleInstallS2/CMakeLists.txt @@ -166,6 +166,8 @@ ELSE(STAGE2) ) # Test directory installation. + FILE(REMOVE_RECURSE "${CMAKE_INSTALL_PREFIX}/MyTest/share/CVS") + FILE(REMOVE_RECURSE "${CMAKE_INSTALL_PREFIX}/MyTest/share/TestSubDir/CVS") INSTALL( DIRECTORY TestSubDir scripts/ DESTINATION MyTest/share PATTERN "CVS" EXCLUDE -- cgit v0.12