publishes weblog whatever happens
authorthierry <thierry@41d37cc5-eb28-0410-a9bf-d37491348ade>
Mon, 12 Nov 2007 14:38:42 +0000 (14:38 +0000)
committerthierry <thierry@41d37cc5-eb28-0410-a9bf-d37491348ade>
Mon, 12 Nov 2007 14:38:42 +0000 (14:38 +0000)
scripts/nightly-build-vserver.sh

index abe0c69..2c3abb3 100755 (executable)
@@ -300,11 +300,17 @@ function main () {
        cp $myplcs $webpath
        
        # warning : need ssh in the vserver 
+       set +e
        if [ -n "$DO_TEST" ] ; then 
+           ok=""
            runtest
+           [ "$?" = 0 ] && ok="true"
+           cp $LOG $weblog
+           [ -z "$ok" ] && failure
        fi
 
        success 
+
     else
        LOG=/build/build-log.txt
        if [ -n "$DO_BUILD" ] ; then