From: Eric Bollengier Date: Fri, 8 Jan 2021 10:40:33 +0000 (+0100) Subject: regress: Fix warning about ddestat variable X-Git-Tag: Release-11.3.2~930 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0aa8436a0baad945c8182441de16c6f4c2cbd092;p=thirdparty%2Fbacula.git regress: Fix warning about ddestat variable --- diff --git a/regress/scripts/functions b/regress/scripts/functions index e6c8ee962..bdb489fa2 100755 --- a/regress/scripts/functions +++ b/regress/scripts/functions @@ -494,6 +494,7 @@ run_bacula() debug_wait zstat=0 estat=0 + ddestat=0 if test "$debug" -eq 1 ; then ${scripts}/bacula-ctl-sd start -m @@ -981,7 +982,7 @@ end_test() fi d=`./test_duration` t=`date +%R:%S` - if [ $ddestat != 0 ] ; then + if [ "$ddestat" != 0 ] ; then echo " " | tee -a test.out echo " !!!!! $TestName ${variant_name} failed!!! $t $d !!!!! " | tee -a test.out echo " Status: estat=$estat zombie=$zstat backup=$bstat restore=$rstat diff=$dstat verify=$vstat dde=$ddestat" | tee -a test.out @@ -1235,6 +1236,16 @@ tmpsrc=${tmpsrc:-"$cwd/tmp/build"} # Unit Tests source directory unitsrc=${unitsrc:-"$cwd/src"} +estat=0 +bstat=0 +rstat=0 +ddestat=0 +zstat=0 +dstat=0 +vstat=0 +export estat bstat rstat ddestat zstat dstat vstat + + export bin export conf export working