summaryrefslogtreecommitdiffstats
path: root/tests/bugs
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2019-10-14 10:29:31 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2019-10-16 12:31:03 +0000
commit1cb05730763d98f65c28246c8808217e6e9d6948 (patch)
tree2cb480bfa20fc70dbe3152a19f0d09ce644ea837 /tests/bugs
parent9e7f5346910b337f87c10e7ae39eecf0bd829e01 (diff)
tests: Fix spurious failure
fixes: bz#1759002 Change-Id: I4d49e1c2ca9b3c1d74b9dd5a30f1c66983a76529 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Diffstat (limited to 'tests/bugs')
-rw-r--r--tests/bugs/replicate/bug-1744548-heal-timeout.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bugs/replicate/bug-1744548-heal-timeout.t b/tests/bugs/replicate/bug-1744548-heal-timeout.t
index 0aaa3ea..c208112 100644
--- a/tests/bugs/replicate/bug-1744548-heal-timeout.t
+++ b/tests/bugs/replicate/bug-1744548-heal-timeout.t
@@ -5,8 +5,8 @@
. $(dirname $0)/../../afr.rc
function get_cumulative_opendir_count {
-#sed 'n:d' prints odd-numbered lines
- $CLI volume profile $V0 info |grep OPENDIR|sed 'n;d' | awk '{print $8}'|tr -d '\n'
+#sed command prints content between Cumulative and Interval, this keeps content from Cumulative stats
+ $CLI volume profile $V0 info |sed -n '/^Cumulative/,/^Interval/p'|grep OPENDIR| awk '{print $8}'|tr -d '\n'
}
cleanup;