1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

Java API: Better Hudson testing; now it is aware of other OpenNebulas running in the system.

This commit is contained in:
Carlos Martín 2010-10-18 16:30:18 +02:00 committed by Javi Fontan
parent 9ffc502774
commit a5002b0acb

View File

@ -5,17 +5,19 @@
JUNIT_JAR="/usr/share/java/junit4.jar"
ONEDB="$ONE_LOCATION/var/one.db"
PID=$$
oned -f &
oned
sleep 4s;
java -cp ../lib/*:../jar/*:$JUNIT_JAR:. org.junit.runner.JUnitCore $1
CODE=$?
pkill oned;
pkill -P $PID oned
sleep 4s;
pkill -9 oned;
pkill -9 -P $PID oned
rm $ONEDB
exit $CODE