]> git.apps.os.sepia.ceph.com Git - autobuild-ceph.git/commitdiff
build-ceph.sh: fail if run-make-check.sh fails
authorKefu Chai <tchaikov@gmail.com>
Thu, 21 Jul 2016 09:07:58 +0000 (17:07 +0800)
committerKefu Chai <tchaikov@gmail.com>
Thu, 21 Jul 2016 09:09:28 +0000 (17:09 +0800)
`set -e` is not enough, we need to use `-o pipefail` also.

> pipefail: the return value of a pipeline is the status of the last
> command to exit with a non-zero status, or zero if no command exited
> with a non-zero status

Fixes: http://tracker.ceph.com/issues/16761
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
build-ceph.sh

index c4c836fc824e813fc800f7d2f4708f07462f0dbc..1b2e689c5f3f23599807a27efb51162e0f9c6e95 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/bash -x
-set -e
+set -e -o pipefail
 
 bindir=`dirname $0`
 . $bindir/reset-modules.sh