From: Morgan Richomme Date: Mon, 23 Aug 2021 07:16:04 +0000 (+0000) Subject: Merge "Fix CSIT job failure for Slice analysis" X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=d6279e1949862ac09ad1c220faffbef12fdd47f8;hp=71da55374e9d8c4a5ce4e81fca8925e4481af536;p=integration%2Fcsit.git Merge "Fix CSIT job failure for Slice analysis" --- diff --git a/plans/so/integration-etsi-testing/config/wait-for-container.sh b/plans/so/integration-etsi-testing/config/wait-for-container.sh index 11e32bce..e2849550 100755 --- a/plans/so/integration-etsi-testing/config/wait-for-container.sh +++ b/plans/so/integration-etsi-testing/config/wait-for-container.sh @@ -133,7 +133,8 @@ process_arguments() exit 1 fi - PORT=$(docker port $CONTAINER_NAME | cut -c1-$(docker port $CONTAINER_NAME | grep -aob '/' | grep -oE '[0-9]+')) +PORT=$((docker port $CONTAINER_NAME | cut -c1-$(docker port $CONTAINER_NAME | grep -aob '/' | grep -oE '[0-9]+' | sed 1q)) | sed 1q) + if [ $? -ne 0 ] || [ -z $PORT ] ; then echo "$SCRIPT_NAME $(current_timestamp) ERROR: Unable to find PORT using project name: $PROJECT_NAME and container name: $CONTAINER_NAME"