vaadin-framework/test/servlet-containers/generic/integration_base_files/cleanup.sh
Teemu Suo-Anttila 53674a7caf Refactor testing of the framework (#8393)
* Integration tests moved from uitest to separate test modules
* Run TB4 tests with maven profile
* Remove old ant/ivy build scripts from uitest
* Add 'needs-ssh' test category for reconnection test
* Add default values for testing and validation builds
* Add placeholder build.xml with instructions to run Maven
2017-02-01 17:17:15 +02:00

27 行
674 B
Bash

#! /bin/bash
echo checking and killing open servers
# Find all java processes, except
# * grep, as we're running it
# * get-lock, as that one is just waiting for this cleanup to happen
# * shutdown-and-cleanup, as that could be the one we're running from
ps x | grep -E bin/java | grep -v grep | grep -v get-lock | grep -v shutdown-and-cleanup | 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/*