diff options
author | Krishnan Parthasarathi <kparthas@redhat.com> | 2013-02-04 12:04:04 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2013-02-04 08:45:09 -0800 |
commit | 99c86cc5aefab052c924b2ff31197d02602da4f1 (patch) | |
tree | f0d80dc038a33ddb39c73f7eb1a7e1afd114cbaf /tests | |
parent | 189eaecf61091145389142b961a1c9f190299f60 (diff) |
tests: Made changes to verify if any of the bricks crashed
Change-Id: I9da3b8a490159b1090a803b74d0058be0d884c94
BUG: 905864
Signed-off-by: Krishnan Parthasarathi <kparthas@redhat.com>
Reviewed-on: http://review.gluster.org/4461
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Raghavendra G <raghavendra@gluster.com>
Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs/bug-905864.t | 3 | ||||
-rw-r--r-- | tests/volume.rc | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/bugs/bug-905864.t b/tests/bugs/bug-905864.t index 9d18ea1e9ff..688723e1452 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 935e503908f..9d579aa22be 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 |