From 2f1c17487951f1e0c119fe909f2fe9194e6a11e0 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Wed, 23 Jan 2013 00:18:29 +0000 Subject: [PATCH] minor bug fix --- extra/shutils/regressiontest_cronjob.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extra/shutils/regressiontest_cronjob.sh b/extra/shutils/regressiontest_cronjob.sh index 8674a2da0..44661a852 100755 --- a/extra/shutils/regressiontest_cronjob.sh +++ b/extra/shutils/regressiontest_cronjob.sh @@ -17,9 +17,11 @@ rm -f output 2>/dev/null cd $REGRESSION_SCRIPT echo "Regression test started at $(date)" 1>/tmp/regressiontest.log 2>&1 python regressiontest.py 1>>/tmp/regressiontest.log 2>&1 -echo "Regression test finished at $(date)" 1>>/tmp/regressiontest.log 2>&1 if [ $? -ne 0 ] then + echo "Regression test finished at $(date)" 1>>/tmp/regressiontest.log 2>&1 cat /tmp/regressiontest.log | mailx -s "${SUBJECT}" -aFrom:${FROM} ${TO} +else + echo "Regression test finished at $(date)" 1>>/tmp/regressiontest.log 2>&1 fi