- ### the URL to the myplc package
- rpm=$( find /vservers/$BASE/build/RPMS -name 'myplc-[0-9]*' )
- if [ ${#rpm[@]} != 1 ] ; then
- echo "$COMMAND: Cannot locate rpm for testing"
+ # where to find TESTSVNPATH
+ stamp=/vservers/$BASE/build/testsvnpath
+ if [ ! -f $stamp ] ; then
+ echo "$COMMAND: Cannot figure TESTSVNPATH from missing $stamp"
+ failure
+ exit 1
+ fi
+ TESTSVNPATH=$(cat $stamp)
+ # use only this pat of the tests right now
+ TESTSVNPATH=${TESTSVNPATH}/system
+
+ ### the URL to the RPMS/<arch> location
+ url=""
+ for a in i386 x86_64; do
+ archdir=/vservers/$BASE/build/RPMS/$a
+ if [ -d $archdir ] ; then
+ url=$(echo $archdir | sed -e "s,/vservers/$BASE/build,${TESTBUILDURL}${PLDISTRO}/${BASE},")
+ break
+ fi
+ done
+
+ if [ -z "$url" ] ; then
+ echo "$COMMAND: Cannot locate arch URL for testing"