add the url of the latest build directory like an argument to the test frame work
authorroot <root@41d37cc5-eb28-0410-a9bf-d37491348ade>
Fri, 3 Aug 2007 09:54:25 +0000 (09:54 +0000)
committerroot <root@41d37cc5-eb28-0410-a9bf-d37491348ade>
Fri, 3 Aug 2007 09:54:25 +0000 (09:54 +0000)
scripts/nightly-build.sh

index 3b234b8..cc0fd21 100755 (executable)
@@ -118,7 +118,7 @@ function runtest () {
     cd $build
     rpm=$(find RPMS -name myplc\*.rpm )
     url=${TESTBUILDURL}${DISTRO}/${buildname}/${rpm}
-
+    latestbuild=${TESTBUILDURL}${DISTRO}/${buildname}/
   ### checkout the test material
     svn co ${TESTSVNPATH} plctest
   # compute test directory name on test box
@@ -127,7 +127,7 @@ function runtest () {
     ssh ${TESTBOXSSH} mkdir -p ${testdir}
     rsync -a -v plctest/ ${TESTBOXSSH}:${testdir}
   # invoke test on testbox
-    ssh ${TESTBOXSSH} python -u ${testdir}/${TESTSCRIPT} ${url}
+    ssh ${TESTBOXSSH} python -u ${testdir}/${TESTSCRIPT} ${url} ${latestbuild}
     if [ "$?" != 0 ] ; then
        failure
     fi