# overwrite vserver's internal yum config from what is in
# .distributions/<distrib>/yum/yum.conf and /yum.repos.d
-# note : on fc6 I've had trouble with yum.conf, I haven't created a custom yum.conf
-# when using the default yum.conf,
-# vserver build -m yum complained that /vservers/<v>/var/log/yum.log could not be created
function configure_yum_in_vserver () {
set -x
TESTBUILDURL="http://build.one-lab.org/"
TESTBOX=onelab-test.inria.fr
TESTBOXSSH=root@onelab-test.inria.fr
-TESTSVNPATH="http://svn.planet-lab.org/svn/tests/system"
+TESTSVNPATH="http://svn.planet-lab.org/svn/tests/trunk/system/"
TESTSCRIPT=TestMain.py
####################
# assuming vserver runs in UTC
url=${TESTBUILDURL}${PLDISTRO}/${BASE}/RPMS/i386/${rpm}
# checkout the system test (formerly known as plctest)
- cd /build
- svn export $TESTSVNPATH system-test
+ cd /vservers/${BASE}/build
+ svn export $TESTSVNPATH TESTS
+ # dont trust retcod
+ if [ ! -d TESTS ] ; then
+ echo "$COMMAND: could not svn export $SVNPATH - check url"
+ exit 1
+ fi
# compute test directory name on test box
- testdir=system-test-${BASE}
- # rsync/push test material onto the test box
+ testdir=plctest-${BASE}
+ # rsync/push test material onto the test box - clean first
+ ssh ${TESTBOXSSH} rm -rf ${testdir}
ssh ${TESTBOXSSH} mkdir -p ${testdir}
- rsync -a -v system-test/ ${TESTBOXSSH}:${testdir}
+ rsync -a -v TESTS/ ${TESTBOXSSH}:${testdir}/
# invoke test on testbox
ssh ${TESTBOXSSH} python -u ${testdir}/${TESTSCRIPT} ${url}
#invoke make install from build to the testbox