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>
This commit is contained in:
parent
2a4561ef08
commit
33bb32ce58
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user