HADOOP-8147. test-patch should run tests with -fn to avoid masking test failures (Robert Evans via tgraves)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1324816 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dab66bee55
commit
bc2340e8b5
@ -627,22 +627,17 @@ runTests () {
|
|||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
echo "$MVN clean install -Pnative -D${PROJECT_NAME}PatchProcess"
|
echo "$MVN clean install -fn -Pnative -D${PROJECT_NAME}PatchProcess"
|
||||||
$MVN clean install -Pnative -D${PROJECT_NAME}PatchProcess
|
$MVN clean install -fn -Pnative -D${PROJECT_NAME}PatchProcess
|
||||||
if [[ $? != 0 ]] ; then
|
|
||||||
### 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"`
|
||||||
|
# With -fn mvn always exits with a 0 exit code. Because of this we need to
|
||||||
|
# find the errors instead of using the exit code. We assume that if the build
|
||||||
|
# failed a -1 is already given for that case
|
||||||
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
|
||||||
|
@ -58,6 +58,9 @@ Trunk (unreleased changes)
|
|||||||
HADOOP-7757. Test file reference count is at least 3x actual value (Jon
|
HADOOP-7757. Test file reference count is at least 3x actual value (Jon
|
||||||
Eagles via bobby)
|
Eagles via bobby)
|
||||||
|
|
||||||
|
HADOOP-8147. test-patch should run tests with -fn to avoid masking test
|
||||||
|
failures (Robert Evans via tgraves)
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
|
||||||
HADOOP-8177. MBeans shouldn't try to register when it fails to create MBeanName.
|
HADOOP-8177. MBeans shouldn't try to register when it fails to create MBeanName.
|
||||||
|
Loading…
Reference in New Issue
Block a user