You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by te...@apache.org on 2012/05/29 22:23:31 UTC

svn commit: r1343959 - /hbase/trunk/dev-support/test-patch.sh

Author: tedyu
Date: Tue May 29 20:23:31 2012
New Revision: 1343959

URL: http://svn.apache.org/viewvc?rev=1343959&view=rev
Log:
HBASE-6123 dev-support/test-patch.sh should compile against hadoop 2.0.0-alpha instead of hadoop 0.23

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=1343959&r1=1343958&r2=1343959&view=diff
==============================================================================
--- hbase/trunk/dev-support/test-patch.sh (original)
+++ hbase/trunk/dev-support/test-patch.sh Tue May 29 20:23:31 2012
@@ -349,13 +349,13 @@ applyPatch () {
 }
 
 ###############################################################################
-### Attempt to compile against the hadoop 0.23.x
-checkHadoop23Compile () {
+### Attempt to compile against the hadoop 2.0
+checkHadoop20Compile () {
   echo ""
   echo ""
   echo "======================================================================"
   echo "======================================================================"
-  echo "    Checking against hadoop 23 build"
+  echo "    Checking against hadoop 2.0 build"
   echo "======================================================================"
   echo "======================================================================"
   echo ""
@@ -363,16 +363,16 @@ checkHadoop23Compile () {
 
   export MAVEN_OPTS="${MAVEN_OPTS}"
   # build core and tests
-  $MVN clean test -DskipTests -Dhadoop.profile=23 -D${PROJECT_NAME}PatchProcess > $PATCH_DIR/trunk23JavacWarnings.txt 2>&1
+  $MVN clean test help:active-profiles -X -DskipTests -Dhadoop.profile=2.0 -D${PROJECT_NAME}PatchProcess > $PATCH_DIR/trunk2.0JavacWarnings.txt 2>&1
   if [[ $? != 0 ]] ; then
     JIRA_COMMENT="$JIRA_COMMENT
 
-    -1 hadoop23.  The patch failed to compile against the hadoop 0.23.x profile."
+    -1 hadoop2.0.  The patch failed to compile against the hadoop 2.0 profile."
     cleanupAndExit 1
   fi
   JIRA_COMMENT="$JIRA_COMMENT
 
-    +1 hadoop23.  The patch compiles against the hadoop 0.23.x profile."
+    +1 hadoop2.0.  The patch compiles against the hadoop 2.0 profile."
   return 0
 }
 
@@ -751,7 +751,7 @@ if [[ $? != 0 ]] ; then
   cleanupAndExit 1
 fi
 
-checkHadoop23Compile
+checkHadoop20Compile
 (( RESULT = RESULT + $? ))
 checkJavadocWarnings
 (( RESULT = RESULT + $? ))