Merge -r 1185921:1185922 from trunk to branch-0.23. Fixes:HADOOP-7755.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1185923 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas White 2011-10-18 23:49:33 +00:00
parent a9fe990f7b
commit dfe8f79cde
2 changed files with 12 additions and 6 deletions

View File

@ -601,14 +601,17 @@ runTests () {
if [[ $? != 0 ]] ; then if [[ $? != 0 ]] ; then
### Find and format names of failed tests ### Find and format names of failed tests
failed_tests=`find . -name 'TEST*.xml' | xargs $GREP -l -E "<failure|<error" | sed -e "s|.*target/surefire-reports/TEST-| |g" | sed -e "s|\.xml||g"` failed_tests=`find . -name 'TEST*.xml' | xargs $GREP -l -E "<failure|<error" | sed -e "s|.*target/surefire-reports/TEST-| |g" | sed -e "s|\.xml||g"`
fi
if [[ -n "$failed_tests" ]] ; then if [[ -n "$failed_tests" ]] ; then
JIRA_COMMENT="$JIRA_COMMENT JIRA_COMMENT="$JIRA_COMMENT
-1 core tests. The patch failed these unit tests: -1 core tests. The patch failed these unit tests:
$failed_tests" $failed_tests"
else
JIRA_COMMENT="$JIRA_COMMENT
-1 core tests. The patch failed the unit tests build"
fi
return 1 return 1
fi fi
JIRA_COMMENT="$JIRA_COMMENT JIRA_COMMENT="$JIRA_COMMENT

View File

@ -656,6 +656,9 @@ Release 0.23.0 - Unreleased
HADOOP-7708. Fixed hadoop-setup-conf.sh to handle config file HADOOP-7708. Fixed hadoop-setup-conf.sh to handle config file
consistently. (Eric Yang) consistently. (Eric Yang)
HADOOP-7755. Detect MapReduce PreCommit Trunk builds silently failing
when running test-patch.sh. (Jonathan Eagles via tomwhite)
Release 0.22.0 - Unreleased Release 0.22.0 - Unreleased
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES