瀏覽代碼

HADOOP-3975. Change test-patch script to report working the dir
modifications preventing the suite from being run. Contributed by Ramya R.


git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@697189 13f79535-47bb-0310-9956-ffa450edef68

Christopher Douglas 17 年之前
父節點
當前提交
59eac60d62
共有 2 個文件被更改,包括 8 次插入3 次删除
  1. 3 0
      CHANGES.txt
  2. 5 3
      src/test/bin/test-patch.sh

+ 3 - 0
CHANGES.txt

@@ -379,6 +379,9 @@ Trunk (unreleased changes)
     HADOOP-4194. Added the JobConf and JobID to job-related methods in
     JobTrackerInstrumentation for better metrics. (Mac Yang via acmurthy) 
 
+    HADOOP-3975. Change test-patch script to report working the dir
+    modifications preventing the suite from being run. (Ramya R via cdouglas)
+
   OPTIMIZATIONS
 
     HADOOP-3556. Removed lock contention in MD5Hash by changing the 

+ 5 - 3
src/test/bin/test-patch.sh

@@ -98,10 +98,12 @@ checkout () {
   echo ""
   echo ""
   ### When run by a developer, if the workspace contains modifications, do not continue
+  status=`$SVN stat`
   if [[ $HUDSON == "false" ]] ; then
-    if [[ `$SVN stat` != "" ]] ; then
-      echo "ERROR: can't run in a workspace that contains modifications"
-      cleanupAndExit 0
+    if [[ "$status" != "" ]] ; then
+      echo "ERROR: can't run in a workspace that contains the following modifications"
+      echo "$status"
+      cleanupAndExit 1
     fi
   else   
     cd $BASEDIR