aboutsummaryrefslogtreecommitdiffstats
path: root/tests/integration_base_files/cleanup.sh
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2011-10-17 13:04:06 +0000
committerLeif Åstrand <leif@vaadin.com>2011-10-17 13:04:06 +0000
commit1c38a69e4f1a1c47b3aff334458a9bea3b704305 (patch)
tree91996d19e6cf932367544d45d16dfd8a10ba54dd /tests/integration_base_files/cleanup.sh
parent7c06bfa1605de089f30b7d622bf8c9ed2e0d34ae (diff)
downloadvaadin-framework-1c38a69e4f1a1c47b3aff334458a9bea3b704305.tar.gz
vaadin-framework-1c38a69e4f1a1c47b3aff334458a9bea3b704305.zip
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
Diffstat (limited to 'tests/integration_base_files/cleanup.sh')
-rw-r--r--tests/integration_base_files/cleanup.sh21
1 files changed, 21 insertions, 0 deletions
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/*