From 5c74c569f4e1da55860d945a286d31912130144c Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 9 Aug 2006 15:03:33 +0000 Subject: added success test so that it only send the email on failure svn path=/trunk/; revision=5537 --- scripts/auto-build/run-automated-builder | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/auto-build/run-automated-builder b/scripts/auto-build/run-automated-builder index 858c923e..a1962b90 100755 --- a/scripts/auto-build/run-automated-builder +++ b/scripts/auto-build/run-automated-builder @@ -15,9 +15,12 @@ run_build_script () su pd -c "sh /home/pd/auto-build/${distro}/scripts/auto-build/${distro}-auto-builder.sh" >> $LOGFILE 2>&1 -# send status report - SUBJECT="$HOSTNAME Pd-$SYSTEM $distro build results $DATE $TIME" - tail -200 ${LOGFILE} | mail -s "${SUBJECT}" hans@eds.org +# send status report if something failed + completion_test=`tail -1 ${LOGFILE}` + if [ "x${completion_test}" != "xSUCCESS" ]; then + SUBJECT="$HOSTNAME Pd-$SYSTEM $distro build results $DATE $TIME" + tail -200 ${LOGFILE} | mail -s "${SUBJECT}" hans@eds.org + fi } run_build_script pd-main -- cgit v1.2.1