From: Kern Sibbald Date: Sun, 30 Sep 2007 12:44:23 +0000 (+0000) Subject: exit on failure X-Git-Tag: Release-7.0.0~5569 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fc874754394292d62404117e03e2ea776d515360;p=bacula%2Fbacula exit on failure git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5691 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/scripts/check_for_zombie_jobs b/regress/scripts/check_for_zombie_jobs index e2a7e6ffa0..768c4e1731 100755 --- a/regress/scripts/check_for_zombie_jobs +++ b/regress/scripts/check_for_zombie_jobs @@ -22,12 +22,14 @@ status $1 @output quit END_OF_DATA + grep "No Jobs running." tmp/dir.out 2>&1 >/dev/null if [ $? != 0 ] ; then echo " " echo " !!!! Zombie Jobs in Director !!!!" echo " !!!! Zombie Jobs in Director !!!!" >>test.out echo " " + exit 1 fi grep "No Jobs running." tmp/fd.out 2>&1 >/dev/null if [ $? != 0 ] ; then @@ -35,6 +37,7 @@ if [ $? != 0 ] ; then echo " !!!! Zombie Jobs in File daemon !!!!" echo " !!!! Zombie Jobs in File daemon !!!!" >>test.out echo " " + exit 1 fi grep "No Jobs running." tmp/sd.out 2>&1 >/dev/null if [ $? != 0 ] ; then @@ -42,6 +45,7 @@ if [ $? != 0 ] ; then echo " !!!! Zombie Jobs in Storage daemon !!!!" echo " !!!! Zombie Jobs in Storage daemon !!!!" >>test.out echo " " + exit 1 fi grep "ERROR" tmp/log*.out 2>&1 >/dev/null if [ $? = 0 ] ; then @@ -49,6 +53,7 @@ if [ $? = 0 ] ; then echo " !!!! ERROR in log output !!!!" echo " !!!! ERROR in log output !!!!" >>test.out echo " " + exit 1 fi grep "Fatal Error" tmp/log*.out 2>&1 >/dev/null if [ $? = 0 ] ; then @@ -56,6 +61,7 @@ if [ $? = 0 ] ; then echo " !!!! Fatal Error in log output !!!!" echo " !!!! Fatal Error in log output !!!!" >>test.out echo " " + exit 1 fi grep "glibc detected" tmp/log*.out 2>&1 >/dev/null @@ -64,5 +70,5 @@ if [ $? = 0 ] ; then echo " !!!! glibc detected Error in log output !!!!" echo " !!!! glibc detected Error in log output !!!!" >>test.out echo " " + exit 1 fi -