From 4e6c60ef89009eaf90164672078a924c913b7362 Mon Sep 17 00:00:00 2001 From: Diego Lovison Date: Wed, 13 Nov 2024 13:33:27 -0300 Subject: [PATCH] Print if REGISTRY_ADDRESS is not defined --- .github/scripts/tests/tests.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/scripts/tests/tests.sh b/.github/scripts/tests/tests.sh index ae54c80ff..07c27455c 100755 --- a/.github/scripts/tests/tests.sh +++ b/.github/scripts/tests/tests.sh @@ -31,7 +31,10 @@ ENDPOINT_TYPE="service" get_dspo_image() { if [ "$REGISTRY_ADDRESS" = "" ]; then - echo "REGISTRY_ADDRESS variable not defined." && exit 1 + # this function is called by `IMG=$(get_dspo_image)` that captures the standard output of get_dspo_image + set -x + echo "REGISTRY_ADDRESS variable not defined." + exit 1 fi local image="${REGISTRY_ADDRESS}/data-science-pipelines-operator" echo $image