From 1c38a69e4f1a1c47b3aff334458a9bea3b704305 Mon Sep 17 00:00:00 2001 From: Leif Åstrand Date: Mon, 17 Oct 2011 13:04:06 +0000 Subject: Added random delay before starting the quicker servers to avoid contention in the beginning Automatically update more base files before starting the actual tests svn changeset:21719/svn branch:6.7 --- tests/integration_base_files/cleanup.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/integration_base_files/cleanup.sh (limited to 'tests/integration_base_files/cleanup.sh') diff --git a/tests/integration_base_files/cleanup.sh b/tests/integration_base_files/cleanup.sh new file mode 100644 index 0000000000..d2d5445070 --- /dev/null +++ b/tests/integration_base_files/cleanup.sh @@ -0,0 +1,21 @@ +echo checking and killing open servers + +ps x | grep -E bin/java | grep -v grep | grep -v get-lock | awk '{print $1}' > temp + +#Read and kill processes marked to temp +while read line +do + kill -9 $line +done < temp + +#Remove temp +rm temp + +if [ -a /home/integration/demo.war ] + then + echo removing old demo.war + rm /home/integration/demo.war +fi + +echo Cleaning deploy dir +rm -rf /home/integration/deploy/* -- cgit v1.2.3