From 25b8de2cf0f39823f9cd97d8c930762f0616a08e Mon Sep 17 00:00:00 2001 From: rintaro ishizaki Date: Sat, 16 Apr 2016 16:35:34 +0900 Subject: [PATCH] [build-script] Tests should fail if one of test commands failed. --- utils/build-script-impl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/build-script-impl b/utils/build-script-impl index 6e3eeb0d9122..669bd401f459 100755 --- a/utils/build-script-impl +++ b/utils/build-script-impl @@ -2311,7 +2311,7 @@ for deployment_target in "${STDLIB_DEPLOYMENT_TARGETS[@]}"; do # executing ninja directly, have it dump the commands it would # run, strip Ninja's progress prefix with sed, and tell the # shell to execute that. - sh -c "set -x && $("${build_cmd[@]}" -n -v ${target} | sed -e 's/[^]]*] //')" + sh -e -x -c "$("${build_cmd[@]}" -n -v ${target} | sed -e 's/[^]]*] //')" else set -x "${build_cmd[@]}" ${BUILD_TARGET_FLAG} ${target}