From ba75b079052eb5d736691185140b7860fb3dbea9 Mon Sep 17 00:00:00 2001 From: "J. Avila" Date: Thu, 24 Jun 2021 19:23:28 +0000 Subject: [PATCH] build_slider: Correctly handle errors It's possible for a build failure to not be properly reported, causing build false positives. Rectify that. Bug: 191995355 Fixes: 796ae751053a ("Rework build_slider to work with build_mixed.sh") Signed-off-by: J. Avila Change-Id: Id6247fc0cf052347ee56ff3fead75be887aa71a0 --- build_slider.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build_slider.sh b/build_slider.sh index 77ae042888e4..e5c38f70b37e 100755 --- a/build_slider.sh +++ b/build_slider.sh @@ -94,6 +94,8 @@ DEVICE_KERNEL_BUILD_CONFIG=${DEVICE_KERNEL_BUILD_CONFIG} \ GKI_DEFCONFIG_FRAGMENT=${GKI_DEFCONFIG_FRAGMENT} \ ./build_mixed.sh +exit_if_error $? "Failed to create mixed build" + # If BUILD_KERNEL is not explicitly set, be sure that there are no aosp/ # changes not present in the prebuilt. if [ "${CHECK_DIRTY_AOSP}" != "0" ]; then