Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
systemtests: add quotes to test operands in a shell script
- the estat, zstat, dstat and so on and the tested values were missing quotes
  • Loading branch information
franku committed Dec 16, 2019
1 parent 99a3771 commit a128f8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions systemtests/scripts/functions
Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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 !!!!! "
Expand Down

0 comments on commit a128f8d

Please sign in to comment.