]> git.sur5r.net Git - bacula/bacula/commitdiff
Turn off regression emails
authorKern Sibbald <kern@sibbald.com>
Sun, 6 Apr 2008 09:31:48 +0000 (09:31 +0000)
committerKern Sibbald <kern@sibbald.com>
Sun, 6 Apr 2008 09:31:48 +0000 (09:31 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6746 91ce42f0-d328-0410-95d8-f526ca767f89

regress/scripts/functions

index a2d22457a127db70b55abde37c59862532d2b5bb..ec5d4d36678f964ca43dd355dea837da5876ac1c 100644 (file)
@@ -4,6 +4,12 @@
 
 start_test()
 {
+   # Turn off email
+   outf="tmp/sed_tmp"
+   echo "s%  mail =%# mail = %g" >${outf}
+   echo "s%  operator =%# operator =%g" >>${outf}
+   cp bin/bacula-dir.conf tmp/1
+   sed -f ${outf} tmp/1 >bin/bacula-dir.conf
    echo " "
    echo " "
    echo " === Starting $TestName at `date +%R:%S` ==="
@@ -205,7 +211,7 @@ end_test()
    else
       echo "  ===== $TestName OK `date +%R:%S` ===== "
       echo "  ===== $TestName OK `date +%R:%S` ===== " >>test.out
-      if [ $debug -eq 0 ] ; then
+      if test "$debug" -eq 0 ; then
          scripts/cleanup
       fi
    fi