From 1ae392285ef511e27a06ca966fbbd52a2f811b5f Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Mon, 2 Mar 2020 13:36:38 -0500 Subject: [PATCH] tests: Have DEBUG=1 set bash xtrace This is similarly used in image_builder.sh and can be handy to determine what is happening. Unfold the 'set' short options while we are at it Signed-off-by: Cole Robinson --- tests/test_images.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_images.sh b/tests/test_images.sh index c8d9fe5f9f..56e9f76228 100755 --- a/tests/test_images.sh +++ b/tests/test_images.sh @@ -4,7 +4,10 @@ # # SPDX-License-Identifier: Apache-2.0 -set -euo pipefail +set -o errexit +set -o nounset +set -o pipefail +[ -n "${DEBUG:-}" ] && set -o xtrace readonly script_dir="$(dirname $(readlink -f $0))" readonly script_name=${0##*/}