From 11ee3b872bc4a5c856737cc4ba981505288740fb Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Wed, 20 May 2020 11:36:04 -0700 Subject: [PATCH] tplg-build.sh: invoke m4 with --fatal-warnings Also use || exit 255 to stop xargs from burying the error message(s). Signed-off-by: Marc Herbert --- tools/test/topology/tplg-build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/test/topology/tplg-build.sh b/tools/test/topology/tplg-build.sh index bac1c0bea..cc8a29e28 100755 --- a/tools/test/topology/tplg-build.sh +++ b/tools/test/topology/tplg-build.sh @@ -267,7 +267,9 @@ then shell_name=m4 # $0, only used in error messages echo $M4_STRINGS | tr " " "," | tr '\n' '\0' | xargs ${VERBOSE:+-t} -P${NO_PROCESSORS} -d ',' -n14 \ - bash ${VERBOSE:+-x} -c 'm4 "${@:1:${#}-1}" > ${14}.conf' $shell_name + bash ${VERBOSE:+-x} -c \ + 'm4 --fatal-warnings "${@:1:${#}-1}" > ${14}.conf || exit 255' \ + $shell_name #execute alsatplg to create topology binary printf '%s generating %s/*.tplg files with alsatplg...\n' \