From: Kern Sibbald Date: Tue, 5 Jun 2007 18:20:52 +0000 (+0000) Subject: Fix 2drive-incremental-2disk test X-Git-Tag: Release-7.0.0~6160 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ab3abf5627f23481b030471b49fe88092ec482bd;p=bacula%2Fbacula Fix 2drive-incremental-2disk test git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4985 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/scripts/functions b/regress/scripts/functions index da99da6605..cf35111670 100644 --- a/regress/scripts/functions +++ b/regress/scripts/functions @@ -119,9 +119,11 @@ end_test() if [ $bstat != 0 -o $rstat != 0 ] ; then echo " !!!!! Bad Job termination status !!!!! " echo " !!!!! Bad Job termination status !!!!! " >>test.out + echo " bstat=$bstat rstat=$rstat dstat=$dstat" else echo " !!!!! Restored files differ !!!!! " echo " !!!!! Restored files differ !!!!! " >>test.out + echo " bstat=$bstat rstat=$rstat dstat=$dstat" fi echo " " else diff --git a/regress/tests/2drive-incremental-2disk b/regress/tests/2drive-incremental-2disk index 79f711a6ba..4a4b84a8be 100755 --- a/regress/tests/2drive-incremental-2disk +++ b/regress/tests/2drive-incremental-2disk @@ -96,7 +96,8 @@ stop_bacula check_two_logs # The restore should read from TestVolume002, which was on drive 1 -grep tmp/log2.out TestVolume002 +grep TestVolume002 tmp/log2.out >/dev/null 2>&1 +# Note rstat may already be set, so we don't just store into it if [ $? != 0 ] ; then rstat=$? fi