From dde502b9de7e2be6bcf8d4b7ae1fa220b1630161 Mon Sep 17 00:00:00 2001 From: Justin Yun Date: Wed, 28 Jun 2023 21:53:34 +0900 Subject: [PATCH] STT: Stop the test run if any builds fail The script must fail and be excluded from the build stats if any build run fails. Bug: 284915566 Test: run_command with fault command Change-Id: I0bc8d14286ebce52036f45ba4dee675f333a3ff0 --- treble/combined_build_test.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/treble/combined_build_test.sh b/treble/combined_build_test.sh index 34328e70e..f6e87c278 100755 --- a/treble/combined_build_test.sh +++ b/treble/combined_build_test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -e # # Copyright (C) 2023 The Android Open Source Project # @@ -84,10 +84,9 @@ if [[ -n "${dist_dir}" ]]; then fi run_command() { + echo "Running: ${1}" if [[ -z "${dry_run}" ]]; then $1 - else - echo "$1" fi }