]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: Fix warning about ddestat variable
authorEric Bollengier <eric@baculasystems.com>
Fri, 8 Jan 2021 10:40:33 +0000 (11:40 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:02:58 +0000 (09:02 +0100)
regress/scripts/functions

index e6c8ee962508c340713c2f3171b1a8ceccdd2709..bdb489fa23566271ab78e2f10ea9d08ee7e733dd 100755 (executable)
@@ -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