summaryrefslogtreecommitdiff
path: root/devtools
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2019-03-12 10:18:28 +0000
committerThomas Monjalon <thomas@monjalon.net>2019-03-13 11:09:55 +0100
commit5d9176673008d585c707fb353596736601bbc5a3 (patch)
tree119e00b5fa4df97799d27da10cc5a23629fc63a9 /devtools
parent218c4e68c1d9bd4a9281bc1dc4d0ab89859083bf (diff)
downloaddpdk-next-eventdev-5d9176673008d585c707fb353596736601bbc5a3.zip
dpdk-next-eventdev-5d9176673008d585c707fb353596736601bbc5a3.tar.gz
dpdk-next-eventdev-5d9176673008d585c707fb353596736601bbc5a3.tar.xz
devtools: fix meson build test to exit on failure
When piping the ninja command through cat, we lose the error value from the call to ninja in the case of failure. This prevents the script from exiting at the first broken build. Fix this by setting the "pipefail" shell option. Fixes: 4bcb9b768604 ("devtools: add verbose option to meson build test") Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Diffstat (limited to 'devtools')
-rwxr-xr-xdevtools/test-meson-builds.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh
index f0d5c9a..e3f19a0 100755
--- a/devtools/test-meson-builds.sh
+++ b/devtools/test-meson-builds.sh
@@ -7,6 +7,8 @@
# * if a build-directory already exists we assume it was properly configured
# Run ninja after configuration is done.
+set -o pipefail
+
srcdir=$(dirname $(readlink -f $0))/..
MESON=${MESON:-meson}
use_shared="--default-library=shared"