浏览代码

fix patch process to log a more coherent message when the eclipse jars are not right

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@689363 13f79535-47bb-0310-9956-ffa450edef68
Nigel Daley 17 年之前
父节点
当前提交
cf38b74927
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      src/test/bin/test-patch.sh

+ 6 - 2
src/test/bin/test-patch.sh

@@ -488,11 +488,15 @@ runContribTestOnEclipseFiles () {
   export ECLIPSE_DECLARED_SRC=$(sed -n 's@.*kind="src".*path="\(.*\)".*@\1@p' < .eclipse.templates/.classpath |sort)
 
   if [ "${DECLARED_JARS}" != "${PRESENT_JARS}" ]; then
-    echo "Some jars are not declared in the Eclipse project."
+    echo "
+FAILED. Some jars are not declared in the Eclipse project.
+  Declared jars: ${DECLARED_JARS}
+  Present jars:  ${PRESENT_JARS}"
     return 1
   fi
   for dir in $ECLIPSE_DECLARED_SRC; do
-    [ '!' -d $dir ] && echo "$dir is referenced in the Eclipse project although it doesn't exists anymore." && return 1
+    [ '!' -d $dir ] && echo "
+FAILED: $dir is referenced in the Eclipse project although it doesn't exists anymore." && return 1
   done
   return 0
 }