MAPREDUCE-3048. Fixed test-patch to run tests via "mvn clean install test" (vinodkv)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1173962 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3557202a92
commit
f553ff0ebd
@ -598,8 +598,8 @@ runTests () {
|
|||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
echo "$MVN clean test -Pnative -D${PROJECT_NAME}PatchProcess"
|
echo "$MVN clean install test -Pnative -D${PROJECT_NAME}PatchProcess"
|
||||||
$MVN clean test -Pnative -D${PROJECT_NAME}PatchProcess
|
$MVN clean install test -Pnative -D${PROJECT_NAME}PatchProcess
|
||||||
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"`
|
||||||
|
Loading…
Reference in New Issue
Block a user