aboutsummaryrefslogtreecommitdiffstats
path: root/plans
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2021-08-23 07:15:07 +0000
committerGerrit Code Review <gerrit@onap.org>2021-08-23 07:15:07 +0000
commit98bc4b3fa14d1549817a1508978cb4d7bec362d3 (patch)
treed40df7167d88f3beadcb80e8ea9dfd38e0d0024b /plans
parent48d53d26e157d195e4c31cdd1af933ed78212104 (diff)
parent0c2e97e23e761121bab7bbfae64873a60da0d25d (diff)
Merge "csit set up not up issue fix"
Diffstat (limited to 'plans')
-rwxr-xr-xplans/so/integration-etsi-testing/config/wait-for-container.sh3
1 files changed, 2 insertions, 1 deletions
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"