diff options
author | Ravishankar N <ravishankar@redhat.com> | 2015-03-17 12:02:32 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2015-03-17 19:44:00 -0700 |
commit | 33bb32ce5866a15e7d5164c67f214c4797236066 (patch) | |
tree | 16b65103a99d4dc4e0793691f47c64830d64f716 | |
parent | 2a4561ef08b8be3b7d79b951252e87ba8f987120 (diff) |
tests: Fix spurious failure in bug-866459.t
10.TEST kill_brick $V0 $H0 $B0/${V0}1
11.-EXPECT '1' echo `pgrep glusterfsd | wc -l
Problem:
On my Fedora 21 laptop, #11 always fails:"not ok 11 Got "2" instead of "1"
On debugging, I found that after killing, the kernel takes some time to
clean up the process until which it appears as defunct in the pgrep
output:
root 21795 2.0 0.0 0 0 ? Zsl 11:57 0:00 [glusterfsd] <defunct>
Fix:
As long as TEST kill_brick is successful, we really don't need to double
check with the pgrep output. Hence removing that line.
Change-Id: Ia10e0a04803e54a074f73da6523fa6a98c677d58
BUG: 1163543
Signed-off-by: Ravishankar N <ravishankar@redhat.com>
Reviewed-on: http://review.gluster.org/9904
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Tested-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
-rw-r--r-- | tests/bugs/glusterfs/bug-866459.t | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/bugs/glusterfs/bug-866459.t b/tests/bugs/glusterfs/bug-866459.t index f90aa3fdc08..a6c767b4b0e 100644 --- a/tests/bugs/glusterfs/bug-866459.t +++ b/tests/bugs/glusterfs/bug-866459.t @@ -25,7 +25,6 @@ dd of=$M0/a if=/dev/urandom bs=1024k count=1 2>&1 > /dev/null B0_hiphenated=`echo $B0 | tr '/' '-'` ## Bring a brick down TEST kill_brick $V0 $H0 $B0/${V0}1 -EXPECT '1' echo `pgrep glusterfsd | wc -l` ## Rewrite the file dd of=$M0/a if=/dev/urandom bs=1024k count=1 2>&1 > /dev/null TEST $CLI volume start $V0 force |