From 2f5f1aa9c433f3221436c003e1f9d7617cf7e3b3 Mon Sep 17 00:00:00 2001 From: Davlet Panech Date: Wed, 17 Apr 2024 10:40:11 -0400 Subject: [PATCH] build-uft-image.sh: error handling Exit with non-zeron if "docker build" fails. Closes-Bug: 2062019 Change-Id: If1ce682b99a98c918dd603ad78bc1de519525f84 Signed-off-by: Davlet Panech --- uft-image/debian/build-uft-image.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uft-image/debian/build-uft-image.sh b/uft-image/debian/build-uft-image.sh index c6384cc..01af8bb 100644 --- a/uft-image/debian/build-uft-image.sh +++ b/uft-image/debian/build-uft-image.sh @@ -17,6 +17,7 @@ docker build -t "$IMAGE_TAG" -f images/Dockerfile.uft . \ --build-arg http_proxy="$http_proxy" \ --build-arg https_proxy="$https_proxy" \ --build-arg DPDK_TAG="$DPDK_TAG" \ - --build-arg UFT_INSTALL_PATH=/usr/local/lib64 + --build-arg UFT_INSTALL_PATH=/usr/local/lib64 \ + || exit 1 exit 0