HADOOP-8375. test-patch should stop immediately once it has found compilation errors (bobby)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1336887 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6a0865440e
commit
6957c78066
@ -423,8 +423,8 @@ checkJavacWarnings () {
|
|||||||
if [[ $? != 0 ]] ; then
|
if [[ $? != 0 ]] ; then
|
||||||
JIRA_COMMENT="$JIRA_COMMENT
|
JIRA_COMMENT="$JIRA_COMMENT
|
||||||
|
|
||||||
-1 javac. The patch appears to cause tar ant target to fail."
|
-1 javac. The patch appears to cause the build to fail."
|
||||||
return 1
|
return 2
|
||||||
fi
|
fi
|
||||||
### Compare trunk and patch javac warning numbers
|
### Compare trunk and patch javac warning numbers
|
||||||
if [[ -f $PATCH_DIR/patchJavacWarnings.txt ]] ; then
|
if [[ -f $PATCH_DIR/patchJavacWarnings.txt ]] ; then
|
||||||
@ -900,9 +900,15 @@ if [[ $? != 0 ]] ; then
|
|||||||
submitJiraComment 1
|
submitJiraComment 1
|
||||||
cleanupAndExit 1
|
cleanupAndExit 1
|
||||||
fi
|
fi
|
||||||
checkJavadocWarnings
|
|
||||||
(( RESULT = RESULT + $? ))
|
|
||||||
checkJavacWarnings
|
checkJavacWarnings
|
||||||
|
JAVAC_RET=$?
|
||||||
|
#2 is returned if the code could not compile
|
||||||
|
if [[ $JAVAC_RET == 2 ]] ; then
|
||||||
|
submitJiraComment 1
|
||||||
|
cleanupAndExit 1
|
||||||
|
fi
|
||||||
|
(( RESULT = RESULT + $JAVAC_RET ))
|
||||||
|
checkJavadocWarnings
|
||||||
(( RESULT = RESULT + $? ))
|
(( RESULT = RESULT + $? ))
|
||||||
checkEclipseGeneration
|
checkEclipseGeneration
|
||||||
(( RESULT = RESULT + $? ))
|
(( RESULT = RESULT + $? ))
|
||||||
|
@ -132,6 +132,9 @@ Trunk (unreleased changes)
|
|||||||
HADOOP-8354. test-patch findbugs may fail if a dependent module is changed
|
HADOOP-8354. test-patch findbugs may fail if a dependent module is changed
|
||||||
(Tom White and Robert Evans)
|
(Tom White and Robert Evans)
|
||||||
|
|
||||||
|
HADOOP-8375. test-patch should stop immediately once it has found
|
||||||
|
compilation errors (bobby)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HADOOP-7761. Improve the performance of raw comparisons. (todd)
|
HADOOP-7761. Improve the performance of raw comparisons. (todd)
|
||||||
|
Loading…
Reference in New Issue
Block a user