summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSunil Kumar Acharya <sheggodu@redhat.com>2018-01-11 23:02:49 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2018-01-15 09:51:06 +0000
commit5442fb502b360406f8de9787828da2339790da88 (patch)
tree4f9408533937c43360c12f4d3585b25382b28a6e /tests
parentc494445c886e16ddc6a960b9074a68fe9621ee09 (diff)
tests: EC test fails with brick mux enabled
Problem: With brick mux enabled get_fd_count count was returning wrong value due to parsing issue. Solution: Updated the code to fix parsing problem. BUG: 1533594 Change-Id: I5d7ff6843b4760f866c4a5aab2f13ff7380f248e Signed-off-by: Sunil Kumar Acharya <sheggodu@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/volume.rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/volume.rc b/tests/volume.rc
index 1ca17ab3456..3a48b43d2e0 100644
--- a/tests/volume.rc
+++ b/tests/volume.rc
@@ -804,7 +804,7 @@ function get_fd_count {
local fname=$4
local gfid_str=$(gf_gfid_xattr_to_str $(gf_get_gfid_xattr $brick/$fname))
local statedump=$(generate_brick_statedump $vol $host $brick)
- local count=$(grep "gfid=$gfid_str" $statedump -A2 | grep fd-count | cut -f2 -d'=' | tail -1)
+ local count=$(grep "gfid=$gfid_str" $statedump -A2 -B1 | grep $brick -A3 | grep fd-count | cut -f2 -d'=' | tail -1)
rm -f $statedump
echo $count
}