Index: dev-support/test-patch.sh =================================================================== --- dev-support/test-patch.sh (revision 1543531) +++ dev-support/test-patch.sh (working copy) @@ -244,12 +244,14 @@ echo "$MVN clean test -DskipTests -D${PROJECT_NAME}PatchProcess > $PATCH_DIR/trunkJavacWarnings.txt 2>&1" export MAVEN_OPTS="${MAVEN_OPTS}" # build core and tests - $MVN clean test -DskipTests -D${PROJECT_NAME}PatchProcess > $PATCH_DIR/trunkJavacWarnings.txt 2>&1 + $MVN clean test -DskipTests -D${PROJECT_NAME}PatchProcess > $PATCH_DIR/trunkJavacWarnings.txt 2>&1 >compile.out if [[ $? != 0 ]] ; then - echo "Trunk compilation is broken?" + ERR=`$GREP -A 5 'Compilation failure' compile.out` + echo "Trunk compilation is broken? + {code}$ERR{code}" cleanupAndExit 1 fi - + rm compile.out } ############################################################################### @@ -390,14 +392,18 @@ export MAVEN_OPTS="${MAVEN_OPTS}" # build core and tests - $MVN clean test help:active-profiles -X -DskipTests -Dhadoop.profile=1.0 -D${PROJECT_NAME}PatchProcess > $PATCH_DIR/trunk1.0JavacWarnings.txt 2>&1 + $MVN clean test help:active-profiles -X -DskipTests -Dhadoop.profile=1.0 -D${PROJECT_NAME}PatchProcess > $PATCH_DIR/trunk1.0JavacWarnings.txt 2>&1 >compile.out if [[ $? != 0 ]] ; then + ERR=`$GREP -A 5 'Compilation failure' compile.out` JIRA_COMMENT="$JIRA_COMMENT - {color:red}-1 hadoop1.0{color}. The patch failed to compile against the hadoop 1.0 profile." + {color:red}-1 hadoop1.0{color}. The patch failed to compile against the hadoop 1.0 profile. + Here is snippet of errors: + {code}$ERR{code}" submitJiraComment 1 cleanupAndExit 1 fi + rm compile.out JIRA_COMMENT="$JIRA_COMMENT {color:green}+1 hadoop1.0{color}. The patch compiles against the hadoop 1.0 profile."