diff options
| author | Pranith Kumar K <pkarampu@redhat.com> | 2014-06-15 08:40:49 +0530 |
|---|---|---|
| committer | Vijay Bellur <vbellur@redhat.com> | 2014-06-16 11:11:28 -0700 |
| commit | d3bd3319afb208acfa905696fb0be5545f5883f6 (patch) | |
| tree | bfc753e888912b084d7fba56d0bbfe8f2e98d906 /tests/bugs/bug-863068.t | |
| parent | 6e33d855815726bd8ebf1c7cdc3cf233ff7ac231 (diff) | |
tests: Avoid sleep
Change-Id: I7169be3532232754b9461c4e1b27bf6bc857f7a6
BUG: 1092850
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/8083
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'tests/bugs/bug-863068.t')
| -rw-r--r-- | tests/bugs/bug-863068.t | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/tests/bugs/bug-863068.t b/tests/bugs/bug-863068.t deleted file mode 100644 index 931aad62396..00000000000 --- a/tests/bugs/bug-863068.t +++ /dev/null @@ -1,76 +0,0 @@ -#!/bin/bash - -. $(dirname $0)/../include.rc - -cleanup; - -## This function get the No. of entries for -## gluster volume heal volnmae info healed command for brick1 and brick2 -## and compare the initial value (Before volume heal full) and final value -## (After gluster volume heal vol full) and compare. - -function getdiff() -{ - val=10 - if [ "$1" == "$3" ] - then - if [ "$2" == "$4" ] - then - val=0 - else - val=20 - fi - fi - - echo $val -} - - -TEST glusterd -TEST pidof glusterd -TEST $CLI volume info; -TEST $CLI volume create $V0 replica 2 $H0:$B0/brick1 $H0:$B0/brick2; -TEST $CLI volume start $V0; -TEST glusterfs --volfile-server=$H0 --volfile-id=$V0 $M0; -B0_hiphenated=`echo $B0 | tr '/' '-'` -kill -9 `cat /var/lib/glusterd/vols/$V0/run/$H0$B0_hiphenated-brick1.pid` ; - -mkdir $M0/{a,b,c}; -echo "GLUSTERFS" >> $M0/a/file; - -TEST $CLI volume start $V0 force; -sleep 5 -TEST $CLI volume heal $V0 full; -sleep 5 - -##First Brick Initial(Before full type self heal) value -FBI=`gluster volume heal $V0 info healed | grep entries | awk '{print $4}' | head -n 1` - -##Second Brick Initial Value -SBI=`gluster volume heal $V0 info healed | grep entries | awk '{print $4}' | tail -n 1` -TEST $CLI volume heal $V0 full; - -sleep 5 - -##First Brick Final value -##Number of entries from output of <gluster volume heal volname info healed> - -FBF=`gluster volume heal $V0 info healed | grep entries | awk '{print $4}' | head -n 1` - -##Second Brick Final Value -SBF=`gluster volume heal $V0 info healed | grep entries | awk '{print $4}' | tail -n 1` - -##get the difference of values -EXPECT "0" getdiff $FBI $SBI $FBF $SBF; - -## Tests after this comment checks for the background self heal - -TEST mkdir $M0/d -kill -9 `cat /var/lib/glusterd/vols/$V0/run/$H0$B0_hiphenated-brick1.pid` ; -TEST $CLI volume set $V0 self-heal-daemon off -dd if=/dev/random of=$M0/d/file1 bs=100M count=1 2>/dev/null; -TEST $CLI volume start $V0 force -sleep 3 -TEST ls -l $M0/d - -cleanup; |
