Browse Source

HADOOP-11904. test-patch.sh goes into an infinite loop on non-maven builds (aw)

Allen Wittenauer 10 năm trước cách đây
mục cha
commit
51df9e8379

+ 7 - 1
dev-support/test-patch.sh

@@ -915,6 +915,13 @@ function git_checkout
   fi
 
   add_jira_footer "git revision" "${PATCH_BRANCH} / ${GIT_REVISION}"
+
+  if [[ ! -f ${BASEDIR}/pom.xml ]]; then
+    hadoop_error "ERROR: This verison of test-patch.sh only supports Maven-based builds. Aborting."
+    add_jira_table -1 pre-patch "Unsupported build system."
+    output_to_jira 1
+    cleanup_and_exit 1
+  fi
   return 0
 }
 
@@ -1331,7 +1338,6 @@ function apply_patch_file
 ## @return       none; otherwise relaunches
 function check_reexec
 {
-  set +x
   local commentfile=${PATCH_DIR}/tp.${RANDOM}
 
   if [[ ${REEXECED} == true ]]; then

+ 3 - 0
hadoop-common-project/hadoop-common/CHANGES.txt

@@ -149,6 +149,9 @@ Release 2.8.0 - UNRELEASED
     HADOOP-11916. TestStringUtils#testLowerAndUpperStrings failed on MAC
     due to a JVM bug. (Ming Ma via ozawa)
 
+    HADOOP-11904. test-patch.sh goes into an infinite loop on non-maven
+    builds (aw)
+
 Release 2.7.1 - UNRELEASED
 
   INCOMPATIBLE CHANGES