From 99c86cc5aefab052c924b2ff31197d02602da4f1 Mon Sep 17 00:00:00 2001 From: Krishnan Parthasarathi Date: Mon, 4 Feb 2013 12:04:04 +0530 Subject: tests: Made changes to verify if any of the bricks crashed Change-Id: I9da3b8a490159b1090a803b74d0058be0d884c94 BUG: 905864 Signed-off-by: Krishnan Parthasarathi Reviewed-on: http://review.gluster.org/4461 Tested-by: Gluster Build System Reviewed-by: Raghavendra G Reviewed-by: Jeff Darcy Reviewed-by: Anand Avati --- tests/bugs/bug-905864.t | 3 +++ tests/volume.rc | 5 +++++ 2 files changed, 8 insertions(+) (limited to 'tests') diff --git a/tests/bugs/bug-905864.t b/tests/bugs/bug-905864.t index 9d18ea1e..688723e1 100644 --- a/tests/bugs/bug-905864.t +++ b/tests/bugs/bug-905864.t @@ -1,6 +1,7 @@ #!/bin/bash . $(dirname $0)/../include.rc +. $(dirname $0)/../volume.rc cleanup; @@ -25,5 +26,7 @@ $(dirname $0)/bug-905864 $M1/file1; wait rm -f $(dirname $0)/bug-905864 +EXPECT $(brick_count $V0) online_brick_count + cleanup diff --git a/tests/volume.rc b/tests/volume.rc index 935e5039..9d579aa2 100644 --- a/tests/volume.rc +++ b/tests/volume.rc @@ -14,6 +14,11 @@ function brick_count() $CLI volume info $vol | egrep "^Brick[0-9]+: " | wc -l; } +function online_brick_count () +{ + pidof glusterfsd | wc -w +} + function volume_option() { local vol=$1 -- cgit