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:
parent
9ffc502774
commit
a5002b0acb
@ -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
|
Loading…
x
Reference in New Issue
Block a user