You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2008/03/24 15:34:07 UTC
svn commit: r640425 - /maven/core-integration-testing/trunk/run-its.sh
Author: hboutemy
Date: Mon Mar 24 07:34:05 2008
New Revision: 640425
URL: http://svn.apache.org/viewvc?rev=640425&view=rev
Log:
avoid script to continue if one step fails
Modified:
maven/core-integration-testing/trunk/run-its.sh
Modified: maven/core-integration-testing/trunk/run-its.sh
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/run-its.sh?rev=640425&r1=640424&r2=640425&view=diff
==============================================================================
--- maven/core-integration-testing/trunk/run-its.sh (original)
+++ maven/core-integration-testing/trunk/run-its.sh Mon Mar 24 07:34:05 2008
@@ -12,19 +12,18 @@
cd core-integration-testing-plugins
mvn install
ret=$?; if [ $ret != 0 ]; then echo "Failed to install IT plugins" && exit $ret; fi
-)
-
-(
+) && (
cd core-integration-testing-support
mvn install
ret=$?; if [ $ret != 0 ]; then echo "Failed to install IT support artifacts." && exit $ret; fi
-)
-
-(
+) && (
cd core-integration-tests
mvn clean test
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
)
+ret=$?
rm -rf "${LOCAL_REPO}"
mv "${LOCAL_REPO}.its" "${LOCAL_REPO}"
+
+exit $ret