From a128f8dbe440f87e812ba56e3c8b06ed1af58c64 Mon Sep 17 00:00:00 2001 From: Frank Ueberschar Date: Mon, 16 Dec 2019 15:28:01 +0100 Subject: [PATCH] systemtests: add quotes to test operands in a shell script - the estat, zstat, dstat and so on and the tested values were missing quotes --- systemtests/scripts/functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/systemtests/scripts/functions b/systemtests/scripts/functions index f80246d2ac5..b592950365d 100644 --- a/systemtests/scripts/functions +++ b/systemtests/scripts/functions @@ -736,7 +736,7 @@ end_test() cat "$tmp/err.log" fi ENDDATE="$(date +%R:%S)" - if [ $estat != 0 ] ; then + if [ "$estat" != "0" ] ; then echo " " echo " !!!!! $TestName failed!!! $ENDDATE !!!!! " echo " Status: estat=$estat zombie=$zstat backup=$bstat restore=$rstat diff=$dstat" @@ -745,7 +745,7 @@ end_test() echo " " exit 1 fi - if [ $zstat != 0 ] ; then + if [ "$zstat" != "0" ] ; then echo " " echo " !!!!! $TestName failed!!! $ENDDATA !!!!! " echo " Status: zombie=$zstat backup=$bstat restore=$rstat diff=$dstat" @@ -754,7 +754,7 @@ end_test() echo " " exit 1 fi - if [ $dstat != 0 -o $bstat != 0 -o $rstat != 0 ] ; then + if [ "$dstat" != "0" -o "$bstat" != "0" -o "$rstat" != "0" ] ; then echo " " echo " " echo " !!!!! $TestName failed!!! $ENDDATE !!!!! "