Don't exit just because some early commands fail. Use the -k flag when running the...
authorBill Wendling <isanbard@gmail.com>
Tue, 18 Oct 2011 17:27:12 +0000 (17:27 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 18 Oct 2011 17:27:12 +0000 (17:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142369 91177308-0d34-0410-b5e6-96231b3b80d8

utils/release/test-release.sh

index fd74eb8..6b8edbc 100755 (executable)
@@ -12,8 +12,6 @@
 #
 #===------------------------------------------------------------------------===#
 
-set -e                          # Exit if any command fails
-
 projects="llvm cfe dragonegg test-suite"
 
 # Base SVN URL for the sources.
@@ -265,13 +263,15 @@ function test_llvmCore() {
     ObjDir="$3"
 
     cd $ObjDir
-    make check-all \
+    make -k check-all \
         2>&1 | tee $LogDir/llvm.check-Phase$Phase-$Flavor.log
-    make unittests \
+    make -k unittests \
         2>&1 | tee $LogDir/llvm.unittests-Phase$Phase-$Flavor.log
     cd $BuildDir
 }
 
+set -e                          # Exit if any command fails
+
 if [ "$do_checkout" = "yes" ]; then
     export_sources
 fi
@@ -368,6 +368,8 @@ for Flavor in $Flavors ; do
 done
 ) 2>&1 | tee $LogDir/testing.$Release-rc$RC.log
 
+set +e
+
 # Woo hoo!
 echo "### Testing Finished ###"
 echo "### Logs: $LogDir"