From 178671f1bfa754b9679444a0958e452bbc4c142a Mon Sep 17 00:00:00 2001 From: ihsan demir Date: Wed, 6 Jan 2016 12:50:04 +0200 Subject: [PATCH] Added clenup to test scripts since the build machine was running out of space. The folder is cleaned up when test is successfull. --- testLinux.sh | 4 ++++ testLinuxSingleCase.sh | 3 +++ testWindows.bat | 4 ++++ testWindowsSingleCase.bat | 3 +++ 4 files changed, 14 insertions(+) diff --git a/testLinux.sh b/testLinux.sh index 92125a8d5a..23fb08aad7 100755 --- a/testLinux.sh +++ b/testLinux.sh @@ -96,6 +96,10 @@ then exit 1 fi +# Remove the release related folder +rm -rf ./Release* +rm -rf ./cpp + echo "All tests PASSED" exit 0 diff --git a/testLinuxSingleCase.sh b/testLinuxSingleCase.sh index ee68dbc178..22440540d1 100755 --- a/testLinuxSingleCase.sh +++ b/testLinuxSingleCase.sh @@ -99,4 +99,7 @@ else echo "Test FAILED. Result:${result}" fi +echo "Removing the build folder(${BUILD_DIR})" +rm -rf ${BUILD_DIR} + exit ${result} diff --git a/testWindows.bat b/testWindows.bat index 51392d365e..b8e6b469a7 100644 --- a/testWindows.bat +++ b/testWindows.bat @@ -76,6 +76,10 @@ if %errorlevel% NEQ 0 ( exit /b 1 ) +echo "Cleaning up release directories" +rm -rf ./Release* +rm -rf ./cpp + echo "All Tests PASSED" exit /b 0 diff --git a/testWindowsSingleCase.bat b/testWindowsSingleCase.bat index 756486b77c..6dc9e3c370 100644 --- a/testWindowsSingleCase.bat +++ b/testWindowsSingleCase.bat @@ -84,3 +84,6 @@ SET PATH=%BUILD_DIR%\%HZ_BUILD_TYPE%;%PATH% %BUILD_DIR%\hazelcast\test\%HZ_BUILD_TYPE%\%EXECUTABLE_NAME% || exit /b 1 taskkill /F /FI "WINDOWTITLE eq cpp-java" + +echo "Removing the build folder(%BUILD_DIR%)" +rm -rf %BUILD_DIR%