From ab04d150445fdcef4b28c7ed9c2d15a5d34fc699 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Fri, 4 Apr 2008 14:56:08 +0000 Subject: [PATCH] gather test logs from plcs, nodes and slices in testlogs/ --- vbuild-nightly.sh | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/vbuild-nightly.sh b/vbuild-nightly.sh index 07353cd9..e54f0f10 100755 --- a/vbuild-nightly.sh +++ b/vbuild-nightly.sh @@ -112,7 +112,12 @@ function success () { mkdir -p ${WEBPATH} cp $LOG ${WEBLOG} summary $LOG >> ${WEBLOG} - touch ${WEBLOG}.ok + if [ -n "DO_TEST"] ; then + echo "Successfully built and tested - see testlogs for details" > ${WEBLOG}.pass + rm -f ${WEBLOG}.ok + else + echo "Successfully built"> ${WEBLOG}.ok + fi if [ -n "$MAILTO" ] ; then (echo "$PLDISTRO ($BASE) build for $FCDISTRO completed on $(date)" ) | mail -s "Successful build for ${BASE}" $MAILTO fi @@ -183,9 +188,16 @@ function runtest () { for config in ${TESTCONFIG} ; do configs="$configs --config $config" done - ssh 2>&1 ${TESTBOXSSH} python -u ${testdir}/runtest --build ${SVNPATH} --url ${url} $configs --all - - if [ "$?" != 0 ] ; then + + # proceed despite of set -e + success=true + ssh 2>&1 ${TESTBOXSSH} ${testdir}/runtest --build ${SVNPATH} --url ${url} $configs --all || success= + + # gather logs in the vserver + mkdir -p /vservers/$BASE/build/testlogs + ssh 2>&1 ${TESTBOXSSH} tar -C ${testdir}/logs -cf . | tar -C /vservers/$BASE/build/testlogs -xf - || true + + if [ -z "$success" ] ; then failure fi @@ -394,6 +406,7 @@ function main () { if [ -n "$DO_TEST" ] ; then runtest + rsync --archive --delete --verbose /vservers/$BASE/build/testlogs/ $WEBPATH/$BASE/testlogs/ fi success -- 2.43.0