From a5002b0acb25e56cf0fd8af91694b0e077208b74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Mon, 18 Oct 2010 16:30:18 +0200 Subject: [PATCH] Java API: Better Hudson testing; now it is aware of other OpenNebulas running in the system. --- src/oca/java/test/test.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/oca/java/test/test.sh b/src/oca/java/test/test.sh index 0cd20dbea0..22f418cad0 100755 --- a/src/oca/java/test/test.sh +++ b/src/oca/java/test/test.sh @@ -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 \ No newline at end of file