Author: tedyu
Date: Mon Dec 30 16:28:49 2013
New Revision: 1554271

URL: http://svn.apache.org/r1554271
Log:
HBASE-10224 Account for empty line in search output


Modified:
    hbase/trunk/dev-support/test-patch.sh

Modified: hbase/trunk/dev-support/test-patch.sh
URL: 
http://svn.apache.org/viewvc/hbase/trunk/dev-support/test-patch.sh?rev=1554271&r1=1554270&r2=1554271&view=diff
==============================================================================
--- hbase/trunk/dev-support/test-patch.sh (original)
+++ hbase/trunk/dev-support/test-patch.sh Mon Dec 30 16:28:49 2013
@@ -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 "0" ]]; then
+  if [[ "$ll" -gt "1" ]]; then
     JIRA_COMMENT="$JIRA_COMMENT
 
     {color:red}-1 lineLengths{color}.  The patch introduces the following 
lines longer than $MAX_LINE_LENGTH:


Reply via email to