hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ni...@apache.org
Subject svn commit: r677839 - /hadoop/core/trunk/src/test/bin/test-patch.sh
Date Fri, 18 Jul 2008 07:00:40 GMT
Author: nigel
Date: Fri Jul 18 00:00:40 2008
New Revision: 677839

URL: http://svn.apache.org/viewvc?rev=677839&view=rev
Log:
Patch process shouldn't -1 documentation patch for not having any tests.

Modified:
    hadoop/core/trunk/src/test/bin/test-patch.sh

Modified: hadoop/core/trunk/src/test/bin/test-patch.sh
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/test/bin/test-patch.sh?rev=677839&r1=677838&r2=677839&view=diff
==============================================================================
--- hadoop/core/trunk/src/test/bin/test-patch.sh (original)
+++ hadoop/core/trunk/src/test/bin/test-patch.sh Fri Jul 18 00:00:40 2008
@@ -214,6 +214,16 @@
   testReferences=`$GREP -c -i '/test' $PATCH_DIR/patch`
   echo "There appear to be $testReferences test files referenced in the patch."
   if [[ $testReferences == 0 ]] ; then
+    if [[ $HUDSON == "true" ]] ; then
+      patchIsDoc=`$GREP -c -i 'title="documentation' $PATCH_DIR/jira`
+      if [[ $patchIsDoc != 0 ]] ; then
+        echo "The patch appears to be a documentation patch that doesn't require tests."
+        JIRA_COMMENT="$JIRA_COMMENT
+
+    +0 tests included.  The patch appears to be a documentation patch that doesn't require
tests."
+        return 0
+      fi
+    fi
     JIRA_COMMENT="$JIRA_COMMENT
 
     -1 tests included.  The patch doesn't appear to include any new or modified tests.



Mime
View raw message