From 7a663208faee75d43a3b1657e45d98c127c61864 Mon Sep 17 00:00:00 2001 From: thierry Date: Wed, 4 Jul 2007 14:04:22 +0000 Subject: [PATCH] writes a .build-ok stamp when build completes -- stores end of log into .broken --- scripts/nightly-build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/nightly-build.sh b/scripts/nightly-build.sh index 1bb5a5c..9715a1b 100755 --- a/scripts/nightly-build.sh +++ b/scripts/nightly-build.sh @@ -32,7 +32,7 @@ EOF # Notify recipient of failure or success, manage various stamps function failure() { set -x - touch ${BUILD}.broken + (echo -n "============================== $COMMAND: failure at" ; date ; tail -c 20k ${BUILD}/log-build.txt) >> ${BUILD}.broken if [ -n "$MAILTO" ] ; then tail -c 8k ${BUILD}/log-build.txt | mail -s "Failures for ${BUILD}" $MAILTO fi @@ -208,6 +208,7 @@ function main () { if [ -n "$DO_TEST" ] ; then runtest ${BUILD} >> ${BUILD}/log-build.txt 2>&1 + touch ${BUILD}.build-ok fi success >> ${BUILD}/log-build.txt 2>&1 -- 2.43.0