aboutsummaryrefslogtreecommitdiff
path: root/tcwg-binutils.yaml
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2015-11-06 08:21:46 +0100
committerChristophe Lyon <christophe.lyon@linaro.org>2015-11-06 08:21:46 +0100
commit75a19fc9829efce1ef393c8a7dffbb532ab336e1 (patch)
treeabb576802d6497e4c64f051bec158b279c6c06ae /tcwg-binutils.yaml
parent63fea5e78bcc2e64ed5fc97c8b5622a204747f9c (diff)
tcwg-binutils: return failure if make check found errors.
Change-Id: I6acb6a579a93ed470dee5241532231576ad1b312
Diffstat (limited to 'tcwg-binutils.yaml')
-rw-r--r--tcwg-binutils.yaml8
1 files changed, 7 insertions, 1 deletions
diff --git a/tcwg-binutils.yaml b/tcwg-binutils.yaml
index 012045de28..cb53cf3fbc 100644
--- a/tcwg-binutils.yaml
+++ b/tcwg-binutils.yaml
@@ -103,7 +103,13 @@
rm -rf build-$target || true
mkdir -p build-$target
cd build-$target
+ result=0
+ # If configure or build fails, the execution will stop
+ # because of 'set -e'. But for 'make check' we want to
+ # execute all the tests, and report if there were some
+ # errors.
${BUILD_SHELL} -c "../configure $lto --enable-plugins --prefix=`pwd`/install --target $target ${bfd}"
${BUILD_SHELL} -c "make all-gas all-ld all-binutils -j4"
- ${BUILD_SHELL} -c "make check-gas check-ld check-binutils -j4 -k" || true
+ ${BUILD_SHELL} -c "make check-gas check-ld check-binutils -j4 -k" || result=1
tail `find . -name "*.sum"`
+ exit $result