summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Villin <avillin@cisco.com>2024-07-17 15:03:42 +0200
committerDave Wallace <dwallacelf@gmail.com>2024-07-17 16:07:32 +0000
commitaedfd7ca3d2f5b17cfd20d4dc3919fe765adb27a (patch)
treebea4f28b51f5e9be0f505ef7c95e006f4457c31d
parent1d3faf0c578e27acb0bb39605365f9d6fbb7365b (diff)
hs-test: exit immediately if docker build fails
Type: test Change-Id: I299d023ce59b931697352c54e4796ba0af2ab1af Signed-off-by: Adrian Villin <avillin@cisco.com>
-rwxr-xr-xextras/hs-test/script/build_hst.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/hs-test/script/build_hst.sh b/extras/hs-test/script/build_hst.sh
index 0f5c0a43630..e7e8a0fb2fa 100755
--- a/extras/hs-test/script/build_hst.sh
+++ b/extras/hs-test/script/build_hst.sh
@@ -69,7 +69,7 @@ fi
docker_build () {
tag=$1
dockername=$2
- set -x
+ set -ex
# shellcheck disable=2086
docker buildx build ${DOCKER_CACHE_ARGS} \
--build-arg UBUNTU_VERSION \
@@ -78,7 +78,7 @@ docker_build () {
--build-arg HTTP_PROXY="$HTTP_PROXY" \
--build-arg HTTPS_PROXY="$HTTP_PROXY" \
-t "$tag" -f docker/Dockerfile."$dockername" .
- set +x
+ set +ex
}
docker_build hs-test/vpp vpp