fix rsync push - mkdir -p for multiple runs
authorthierry <thierry@41d37cc5-eb28-0410-a9bf-d37491348ade>
Fri, 29 Jun 2007 10:10:44 +0000 (10:10 +0000)
committerthierry <thierry@41d37cc5-eb28-0410-a9bf-d37491348ade>
Fri, 29 Jun 2007 10:10:44 +0000 (10:10 +0000)
scripts/nightly-build.sh

index d262dc6..264567c 100755 (executable)
@@ -117,8 +117,8 @@ function runtest () {
   # compute test directory name on test box
   testdir=plctest-${buildname}
   # rsync/push test material onto the test box
-  ssh ${TESTBOXSSH} mkdir ${testdir}
-  rsync -a -v plctest/ ${TESTBOXSSH}/${testdir}
+  ssh ${TESTBOXSSH} mkdir -p ${testdir}
+  rsync -a -v plctest/ ${TESTBOXSSH}:${testdir}
   # invoke test on testbox
   ssh ${TESTBOXSSH} ${testdir}/${TESTSCRIPT} ${url}
   return $?