瀏覽代碼

HADOOP-12149. copy all of test-patch BINDIR prior to re-exec (aw)

Allen Wittenauer 9 年之前
父節點
當前提交
147e020c7a
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. 2 2
      dev-support/test-patch.sh
  2. 2 0
      hadoop-common-project/hadoop-common/CHANGES.txt

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

@@ -1521,8 +1521,8 @@ function check_reexec
 
 
   cd "${CWD}"
   cd "${CWD}"
   mkdir -p "${PATCH_DIR}/dev-support-test"
   mkdir -p "${PATCH_DIR}/dev-support-test"
-  cp -pr "${BASEDIR}"/dev-support/test-patch* "${PATCH_DIR}/dev-support-test"
-  cp -pr "${BASEDIR}"/dev-support/smart-apply* "${PATCH_DIR}/dev-support-test"
+  (cd "${BINDIR}"; tar cpf - . ) \
+	| (cd  "${PATCH_DIR}/dev-support-test"; tar xpf - )
 
 
   big_console_header "exec'ing test-patch.sh now..."
   big_console_header "exec'ing test-patch.sh now..."
 
 

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

@@ -232,6 +232,8 @@ Trunk (Unreleased)
 
 
     HADOOP-11807. add a lint mode to releasedocmaker (ramtin via aw)
     HADOOP-11807. add a lint mode to releasedocmaker (ramtin via aw)
 
 
+    HADOOP-12149. copy all of test-patch BINDIR prior to re-exec (aw)
+
   BUG FIXES
   BUG FIXES
 
 
     HADOOP-11473. test-patch says "-1 overall" even when all checks are +1
     HADOOP-11473. test-patch says "-1 overall" even when all checks are +1