summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHarshavardhana <harsha@harshavardhana.net>2014-05-06 14:38:40 -0700
committerVijay Bellur <vbellur@redhat.com>2014-05-09 11:16:26 -0700
commit47c33dd27150039a6e5e3295eacd8d2d5a7e0ce0 (patch)
tree32644c67ecc8fa62403de50cb6781e310f42846a /tests
parentc7b0396f680863528248e6f5a162de47184b6c88 (diff)
tests: min-free-disk test was incomplete
- use '%' when we mean it for clarity - in bash we need to evaluate counter decrements Change-Id: Ibd17126945e8a335fa2671d658a2e0c71049fd1e BUG: 874554 Signed-off-by: Harshavardhana <harsha@harshavardhana.net> Reviewed-on: http://review.gluster.org/7687 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Raghavendra Talur <rtalur@redhat.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs/bug-858488-min-free-disk.t8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/bugs/bug-858488-min-free-disk.t b/tests/bugs/bug-858488-min-free-disk.t
index dfed0fd33f7..babb27c4e25 100644
--- a/tests/bugs/bug-858488-min-free-disk.t
+++ b/tests/bugs/bug-858488-min-free-disk.t
@@ -21,7 +21,6 @@ TEST mkdir -p $B0/${V0}1 $B0/${V0}2
TEST mount -t xfs $LO1 $B0/${V0}1
TEST mount -t xfs $LO2 $B0/${V0}2
-
## Lets create volume
TEST $CLI volume create $V0 $H0:$B0/${V0}{1,2};
@@ -36,7 +35,7 @@ TEST glusterfs -s $H0 --volfile-id=$V0 --acl $M0
## Real test starts here
## ----------------------------------------------------------------------------
-MINFREEDISKVALUE=90
+MINFREEDISKVALUE=90%
## Set min free disk to MINFREEDISKVALUE percent
TEST $CLI volume set $V0 cluster.min-free-disk $MINFREEDISKVALUE
@@ -54,13 +53,13 @@ do
if [[ -e $B0/${V0}1/file$i.data && $BRICK1FILE = "0" ]]
then
BRICK1FILE=file$i.data
- CONTINUE=$CONTINUE-1
+ CONTINUE=$(( $CONTINUE - 1 ))
fi
if [[ -e $B0/${V0}2/file$i.data && $BRICK2FILE = "0" ]]
then
BRICK2FILE=file$i.data
- CONTINUE=$CONTINUE-1
+ CONTINUE=$(( $CONTINUE - 1 ))
fi
rm $M0/file$i.data
@@ -95,7 +94,6 @@ done
dd if=/dev/zero of=$M0/$FILETOCREATE bs=1024 count=2048 1>/dev/null 2>&1
TEST [ -e $OTHERBRICK/$FILETOCREATE ]
-
## Done testing, lets clean up
TEST rm -rf $M0/*