Parcourir la source

HADOOP-11926. test-patch.sh mv does wrong math (aw)

Allen Wittenauer il y a 10 ans
Parent
commit
4402e4c633
2 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 1 1
      dev-support/test-patch.sh
  2. 2 0
      hadoop-common-project/hadoop-common/CHANGES.txt

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

@@ -2262,7 +2262,7 @@ function cleanup_and_exit
         # Jenkins or whatever already knows where it is at
         # Jenkins or whatever already knows where it is at
         # since it told us to put it there!
         # since it told us to put it there!
         relative_patchdir >/dev/null
         relative_patchdir >/dev/null
-        if [[ $? == 0 ]]; then
+        if [[ $? == 1 ]]; then
           hadoop_debug "mv ${PATCH_DIR} ${BASEDIR}"
           hadoop_debug "mv ${PATCH_DIR} ${BASEDIR}"
           mv "${PATCH_DIR}" "${BASEDIR}"
           mv "${PATCH_DIR}" "${BASEDIR}"
         fi
         fi

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

@@ -610,6 +610,8 @@ Release 2.8.0 - UNRELEASED
     HADOOP-11904. test-patch.sh goes into an infinite loop on non-maven
     HADOOP-11904. test-patch.sh goes into an infinite loop on non-maven
     builds (aw)
     builds (aw)
 
 
+    HADOOP-11926. test-patch.sh mv does wrong math (aw)
+
 Release 2.7.1 - UNRELEASED
 Release 2.7.1 - UNRELEASED
 
 
   INCOMPATIBLE CHANGES
   INCOMPATIBLE CHANGES