aboutsummaryrefslogtreecommitdiffstats
path: root/plans/so/integration-etsi-testing
diff options
context:
space:
mode:
authorabhishek bajaj <abhishek.kumar.bajaj@huawei.com>2021-08-16 11:36:29 +0530
committerAbhishek Bajaj <abhishek.kumar.bajaj@huawei.com>2021-08-16 09:44:08 +0000
commit0c2e97e23e761121bab7bbfae64873a60da0d25d (patch)
treee760bb9748c0dfff6ab5a37bbbe54ee1b15a97b4 /plans/so/integration-etsi-testing
parent2a8ea348f7e0b17aa2c92e298ccac382bf772362 (diff)
csit set up not up issue fix
Issue-ID: INT-1957 Signed-off-by: abhishek bajaj <abhishek.kumar.bajaj@huawei.com> Change-Id: Ieebc109b52dc5d970465c5815df2875659257402
Diffstat (limited to 'plans/so/integration-etsi-testing')
-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"