From 8d7a4f6b0aa8e63e1a0802e22bcebe96e4e7490f Mon Sep 17 00:00:00 2001 From: Pamela Ousley Date: Mon, 10 Aug 2015 18:38:00 -0400 Subject: cluster/tier: fixed pattern matching error in tier.t The check_counters function contained "grep -o '[0-9*]'", which was in error. This patch corrects it to "grep -o '[0-9]*'". This fix was necessary to accommodate for double-digit counters. Change-Id: Idaa09de4403bf66e741176a7377eba264819ca3b BUG: 1252121 Signed-off-by: Pamela Ousley Reviewed-on: http://review.gluster.org/11877 Reviewed-by: Dan Lambright Tested-by: NetBSD Build System Tested-by: Dan Lambright --- tests/basic/tier/tier.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/basic/tier') diff --git a/tests/basic/tier/tier.t b/tests/basic/tier/tier.t index 6f091999381..337f7d7f3e7 100755 --- a/tests/basic/tier/tier.t +++ b/tests/basic/tier/tier.t @@ -98,7 +98,7 @@ function check_counters { $CLI volume rebalance $V0 tier status | grep localhost > /tmp/tc.txt - cat /tmp/tc.txt | grep -o '[0-9*]' | while read line; do + cat /tmp/tc.txt | grep -o '[0-9]*' | while read line; do if [ $index == 0 ]; then index=1 test $line -ne $1 && echo "1" > /tmp/tc2.txt -- cgit