HBASE-14310 test-patch.sh should handle spurious non-zero exit code from maven
This commit is contained in:
parent
ff86749cae
commit
aca8c3b74b
|
@ -335,10 +335,13 @@ setup () {
|
||||||
$MVN clean package checkstyle:checkstyle-aggregate findbugs:findbugs -DskipTests \
|
$MVN clean package checkstyle:checkstyle-aggregate findbugs:findbugs -DskipTests \
|
||||||
-D${PROJECT_NAME}PatchProcess > $PATCH_DIR/trunkJavacWarnings.txt 2>&1
|
-D${PROJECT_NAME}PatchProcess > $PATCH_DIR/trunkJavacWarnings.txt 2>&1
|
||||||
if [[ $? != 0 ]] ; then
|
if [[ $? != 0 ]] ; then
|
||||||
|
echo "mvn exit code was $?"
|
||||||
ERR=`$GREP -A 5 'Compilation failure' $PATCH_DIR/trunkJavacWarnings.txt`
|
ERR=`$GREP -A 5 'Compilation failure' $PATCH_DIR/trunkJavacWarnings.txt`
|
||||||
echo "Trunk compilation is broken?
|
if [[ ${#ERR} -ge 1 ]] ; then
|
||||||
{code}$ERR{code}"
|
echo "Trunk compilation is broken?
|
||||||
cleanupAndExit 1
|
{code}$ERR{code}"
|
||||||
|
cleanupAndExit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
mv target/checkstyle-result.xml $PATCH_DIR/trunkCheckstyle.xml
|
mv target/checkstyle-result.xml $PATCH_DIR/trunkCheckstyle.xml
|
||||||
collectFindbugsReports trunk $BASEDIR $PATCH_DIR
|
collectFindbugsReports trunk $BASEDIR $PATCH_DIR
|
||||||
|
|
Loading…
Reference in New Issue