[Nice-commit] tester run,1.5,1.6
Brought to you by:
bonniot
|
From: <bo...@us...> - 2003-04-27 14:56:38
|
Update of /cvsroot/nice/tester
In directory sc8-pr-cvs1:/tmp/cvs-serv2812
Modified Files:
run
Log Message:
Stop if update failed.
Add JAVA_HOME/bin in front of the PATH, to use their tools in all cases.
Index: run
===================================================================
RCS file: /cvsroot/nice/tester/run,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** run 27 Apr 2003 14:49:10 -0000 1.5
--- run 27 Apr 2003 14:56:34 -0000 1.6
***************
*** 9,14 ****
# We first update the tester code, then start a new copy of this file
# (since it might have been updated).
! cvs update
! exec "$0" updated
fi
--- 9,18 ----
# We first update the tester code, then start a new copy of this file
# (since it might have been updated).
! if cvs update; then
! exec "$0" updated
! else
! echo "Update of the tester code failed. Exiting."
! exit 1
! fi
fi
***************
*** 36,39 ****
--- 40,45 ----
export NICE_JAR=${PWD}/Nice/share/java/nice.jar
+ ORIGINAL_PATH="$PATH"
+
# We run the whole set of tests once per configuration.
# This means that the test scripts must first clean up the tree,
***************
*** 43,46 ****
--- 49,54 ----
name="`expr match $conffile '../config\.\(.*\)'`"
. $conffile
+
+ PATH="$JAVA_HOME/bin:$ORIGINAL_PATH"
config=$machine:$name
|