From 5442fb502b360406f8de9787828da2339790da88 Mon Sep 17 00:00:00 2001 From: Sunil Kumar Acharya Date: Thu, 11 Jan 2018 23:02:49 +0530 Subject: 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 --- tests/volume.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/volume.rc') 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 } -- cgit