From: Bruce Richardson Date: Tue, 12 Mar 2019 10:18:28 +0000 (+0000) Subject: devtools: fix meson build test to exit on failure X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5d9176673008d585c707fb353596736601bbc5a3;p=dpdk.git 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 --- diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh index f0d5c9a84b..e3f19a01aa 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"