HBASE-10224 Line length check in test-patch.sh is broken

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1554234 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2013-12-30 14:32:54 +00:00
parent 1a8c7ec0a9
commit 4e3efb105d
1 changed files with 1 additions and 1 deletions

View File

@ -670,7 +670,7 @@ checkLineLengths () {
MAX_LINE_LENGTH_PATCH=`expr $MAX_LINE_LENGTH + 1`
lines=`cat $PATCH_DIR/patch | grep "^+" | grep -v "^@@" | grep -v "^+++" | grep -v "import" | grep -v "hbase.protobuf.generated" | awk -v len="$MAX_LINE_LENGTH_PATCH" 'length ($0) > len' | head -n 10`
ll=`echo "$lines" | wc -l`
if [[ "$ll" -gt "$MAX_LINE_LENGTH_PATCH" ]]; then
if [[ "$ll" -gt "0" ]]; then
JIRA_COMMENT="$JIRA_COMMENT
{color:red}-1 lineLengths{color}. The patch introduces the following lines longer than $MAX_LINE_LENGTH: