Improve early failure test.
authorDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Thu, 15 Jul 2010 19:45:31 +0000 (15:45 -0400)
committerDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Thu, 15 Jul 2010 19:45:31 +0000 (15:45 -0400)
vbuild-nightly.sh

index 133852f..5ee38d9 100755 (executable)
@@ -121,7 +121,7 @@ function webpublish_append_stdin_to_file () { ssh root@${WEBHOST} cat \>\> $1; }
 function failure() {
     set -x
     # early stage ? - let's not create /build/@PLDISTRO@
-    if webpublish_misses_dir $WEBPATH ; then
+    if test -z "$WEBLOG" ; then
        WEBHOST=localhost
        WEBPATH=/tmp
        WEBBASE=/tmp/vbuild-early-$(date +%Y-%m-%d)
@@ -149,7 +149,7 @@ function failure() {
 function success () {
     set -x
     # early stage ? - let's not create /build/@PLDISTRO@
-    if webpublish_misses_dir ${WEBPATH} ; then
+    if test -z "$WEBLOG" ; then
        WEBHOST=localhost
        WEBPATH=/tmp
        WEBLOG=/tmp/vbuild-early-$(date +%Y-%m-%d).log.txt