reflect test mode (chroot/vserver) in test dirname
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 31 Mar 2008 15:00:53 +0000 (15:00 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 31 Mar 2008 15:00:53 +0000 (15:00 +0000)
vbuild-nightly.sh

index ed9a3e2..e72afc6 100755 (executable)
@@ -171,7 +171,9 @@ function runtest () {
     url=$(echo $rpm | sed -e "s,/vservers/$BASE/build,${TESTBUILDURL}${PLDISTRO}/${BASE},")
 
     # compute test directory name on test box
-    testdir=test-${BASE}
+    testdir=chroot-${BASE}
+    # use another name if any config contains vserver
+    echo $TESTCONFIG | grep vserver &> /dev/null && testdir=vserver-${BASE}
     # clean it
     ssh ${TESTBOXSSH} rm -rf ${testdir}
     # check it out