mirror of https://github.com/apache/maven.git
o toss out the log of the build if something goes wrong, otherwise just
indicate things went OK. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162984 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cad4fb9326
commit
125b833abc
|
@ -12,10 +12,6 @@ integration_tests=`cat integration-tests.txt | egrep -v '^#'`
|
|||
|
||||
for integration_test in $integration_tests
|
||||
do
|
||||
|
||||
echo "----------------------------------------------------------"
|
||||
echo "Running integration test $integration_test ..."
|
||||
echo "----------------------------------------------------------"
|
||||
(
|
||||
cd $integration_test
|
||||
|
||||
|
@ -27,7 +23,6 @@ do
|
|||
fi
|
||||
|
||||
m2 clean:clean `cat goals.txt`
|
||||
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
||||
|
||||
if [ -f postbuild.hook ]
|
||||
then
|
||||
|
@ -38,8 +33,17 @@ do
|
|||
|
||||
basedir=.
|
||||
|
||||
java -cp "$cp" $verifier "$basedir"
|
||||
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
||||
)
|
||||
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
||||
java -cp "$cp" $verifier "$basedir"
|
||||
) > ${integration_test}-log.txt
|
||||
|
||||
if [ "$?" = "0" ]
|
||||
then
|
||||
echo "Integration test $integration_test OK"
|
||||
else
|
||||
echo "Integration test $integration_test FAILED!"
|
||||
echo "Details:"
|
||||
cat ${integration_test}-log.txt
|
||||
echo
|
||||
fi
|
||||
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue