From: Thierry Parmentelat Date: Mon, 17 Dec 2007 16:43:04 +0000 (+0000) Subject: prepare for testing in native mode X-Git-Tag: 4.2-rc2~323 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=40097fc63292d9f256d82df31f815553d864e3fe;p=build.git prepare for testing in native mode --- diff --git a/vbuild-nightly.sh b/vbuild-nightly.sh index 67fdf49a..9e10a684 100755 --- a/vbuild-nightly.sh +++ b/vbuild-nightly.sh @@ -148,6 +148,7 @@ function runtest () { failure exit 1 fi + rpms_url=${TESTBUILDURL}${PLDISTRO}/${BASE}/RPMS/ url=${TESTBUILDURL}${PLDISTRO}/${BASE}/RPMS/i386/${rpm} # compute test directory name on test box @@ -156,6 +157,12 @@ function runtest () { ssh ${TESTBOXSSH} rm -rf ${testdir} # check it out ssh ${TESTBOXSSH} svn co ${TESTSVNPATH} ${testdir} + # store the myplc http url in the newly created test dir - for testing in chroot mode + echo ${url} | ssh ${TESTBOXSSH} "cat > ${testdir}/MYPLC-URL" + # store the build svn path in the newly created test dir - so it can perform myplc-init-vserver + echo ${SVNPATH} | ssh ${TESTBOXSSH} "cat > ${testdir}/BUILD-URL" + # store the rpms http url in the newly created test dir - for passing to myplc-init-vserver + echo ${rpms_url} | ssh ${TESTBOXSSH} "cat > ${testdir}/RPMS-URL" # invoke test on testbox ssh 2>&1 ${TESTBOXSSH} python -u ${testdir}/${TESTSCRIPT} ${url} # still missing - need to populate /var/www/html/install-rpms on the myplc