[sheepdog] [PATCH] test: tests/check failed wiih error 'invalid range end'
kyle
kyle at zelin.io
Thu May 9 18:34:16 CEST 2013
tests/check failed on Centos 6.x because 'sed' can't
work with '[A-z]'.
It would fail with 'invalid range end' error message.
Fixed it by replace [A-z] with [A-Za-z].
Signed-off-by: Kai Zhang <kyle at zelin.io>
---
tests/common.filter | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tests/common.filter b/tests/common.filter
index dc8c6d4..ad3924c 100644
--- a/tests/common.filter
+++ b/tests/common.filter
@@ -125,7 +125,7 @@ EOF
_filter_date()
{
sed \
- -e 's/[A-Z][a-z][a-z] [A-z][a-z][a-z] *[0-9][0-9]* [0-9][0-9]:[0-9][0-9]:[0-9][0-9] [0-9][0-9][0-9][0-9]$/DATE/'
+ -e 's/[A-Z][a-z][a-z] [A-Za-z][a-z][a-z] *[0-9][0-9]* [0-9][0-9]:[0-9][0-9]:[0-9][0-9] [0-9][0-9][0-9][0-9]$/DATE/'
}
# ISO dates
--
1.7.1
More information about the sheepdog
mailing list