74096c
From b65ca1045910bc18c601681788eb322dbb8ec2fa Mon Sep 17 00:00:00 2001
74096c
From: Pranith Kumar K <pkarampu@redhat.com>
74096c
Date: Mon, 14 Oct 2019 10:29:31 +0530
74096c
Subject: [PATCH 404/449] tests: Fix spurious failure
74096c
74096c
> Upstream patch:https://review.gluster.org/23546
74096c
> fixes: bz#1759002
74096c
> Change-Id: I4d49e1c2ca9b3c1d74b9dd5a30f1c66983a76529
74096c
> Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
74096c
74096c
BUG: 1764091
74096c
Change-Id: I8b66f08cce7a87788867c6373aed71d6fc65155f
74096c
Signed-off-by: Ravishankar N <ravishankar@redhat.com>
74096c
Reviewed-on: https://code.engineering.redhat.com/gerrit/202370
74096c
Tested-by: RHGS Build Bot <nigelb@redhat.com>
74096c
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
74096c
---
74096c
 tests/bugs/replicate/bug-1744548-heal-timeout.t | 4 ++--
74096c
 1 file changed, 2 insertions(+), 2 deletions(-)
74096c
74096c
diff --git a/tests/bugs/replicate/bug-1744548-heal-timeout.t b/tests/bugs/replicate/bug-1744548-heal-timeout.t
74096c
index 0aaa3ea..c208112 100644
74096c
--- a/tests/bugs/replicate/bug-1744548-heal-timeout.t
74096c
+++ b/tests/bugs/replicate/bug-1744548-heal-timeout.t
74096c
@@ -5,8 +5,8 @@
74096c
 . $(dirname $0)/../../afr.rc
74096c
 
74096c
 function get_cumulative_opendir_count {
74096c
-#sed 'n:d' prints odd-numbered lines
74096c
-    $CLI volume profile $V0 info |grep OPENDIR|sed 'n;d' | awk '{print $8}'|tr -d '\n'
74096c
+#sed command prints content between Cumulative and Interval, this keeps content from Cumulative stats
74096c
+    $CLI volume profile $V0 info |sed -n '/^Cumulative/,/^Interval/p'|grep OPENDIR| awk '{print $8}'|tr -d '\n'
74096c
 }
74096c
 
74096c
 cleanup;
74096c
-- 
74096c
1.8.3.1
74096c