1
0
Преглед на файлове

Patch process shouldn't -1 documentation patch for not having any tests.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@677839 13f79535-47bb-0310-9956-ffa450edef68
Nigel Daley преди 17 години
родител
ревизия
901c1eed97
променени са 1 файла, в които са добавени 10 реда и са изтрити 0 реда
  1. 10 0
      src/test/bin/test-patch.sh

+ 10 - 0
src/test/bin/test-patch.sh

@@ -214,6 +214,16 @@ checkTests () {
   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.