diff options
author | Pamela Ousley <pousley@redhat.com> | 2015-08-10 18:38:00 -0400 |
---|---|---|
committer | Dan Lambright <dlambrig@redhat.com> | 2015-08-11 10:39:56 -0700 |
commit | 8d7a4f6b0aa8e63e1a0802e22bcebe96e4e7490f (patch) | |
tree | e90d79cd215109d2ab4e294705793ff686ab4b63 | |
parent | f550efa2879c02dec4c8f6876a94fcfd95b5bf91 (diff) |
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 <pousley@redhat.com>
Reviewed-on: http://review.gluster.org/11877
Reviewed-by: Dan Lambright <dlambrig@redhat.com>
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Dan Lambright <dlambrig@redhat.com>
-rwxr-xr-x | tests/basic/tier/tier.t | 2 |
1 files changed, 1 insertions, 1 deletions
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 |