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: 4bcb9b7686 ("devtools: add verbose option to meson build test")

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
This commit is contained in:
Bruce Richardson 2019-03-12 10:18:28 +00:00 committed by Thomas Monjalon
parent 218c4e68c1
commit 5d91766730

View File

@ -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"