From: Eric Bollengier Date: Wed, 1 Jul 2009 18:26:12 +0000 (+0000) Subject: ebl fix copy-volume-test X-Git-Tag: Release-3.0.2~133 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b525f686e4e7cd2f69f0bd7f8379f2cc3b37fe78;p=bacula%2Fbacula ebl fix copy-volume-test git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8933 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/tests/copy-volume-test b/regress/tests/copy-volume-test index d272c97cd4..106aa76492 100755 --- a/regress/tests/copy-volume-test +++ b/regress/tests/copy-volume-test @@ -168,14 +168,14 @@ stop_bacula get_mig_info 1 ${cwd}/tmp/log11.out -if [ -z "$RET" -o $RET -eq 0 ]; then +if [ -z "$RET" -o "$RET" = 0 ]; then bstat=2 print_debug "The first job must have been copied" fi get_mig_info 2 ${cwd}/tmp/log11.out -if [ -z "$RET" -o $RET -ne 0 ]; then +if [ -n "$RET" ]; then bstat=2 print_debug "The second job has no files, it can't have been copied" fi @@ -183,7 +183,7 @@ fi JOBID=`awk -F= '/Job queued. JobId/ {if(!f){print $2; f=1;}}' ${cwd}/tmp/log4.out` get_mig_info $JOBID ${cwd}/tmp/log4.out -if [ -z "$RET" -o $RET -eq 0 ]; then +if [ -z "$RET" -o "$RET" = 0 ]; then bstat=2 print_debug "The new incremental job must have been copied" fi