From: lukegleeson Date: Tue, 10 May 2022 12:38:32 +0000 (+0100) Subject: Improve Local Running of CSIT Tests X-Git-Tag: 3.1.0~129^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=cps.git;a=commitdiff_plain;h=59d2520ccc8911ee6eaffa03f4113458f5684895 Improve Local Running of CSIT Tests Issue-ID: CPS-734 Signed-off-by: lukegleeson Change-Id: Iff92f43dc69cdaf3e1e78551f68ecfb08bde4b93 --- diff --git a/csit/plans/cps/setup.sh b/csit/plans/cps/setup.sh index 6ef4c9a1f..d633b1ee2 100755 --- a/csit/plans/cps/setup.sh +++ b/csit/plans/cps/setup.sh @@ -50,7 +50,7 @@ check_health() ###################### setup env ############################ # Set env variables for docker compose -export LOCAL_IP=$(ip -4 addr show docker0 | grep -Po 'inet \K[\d.]+') +export LOCAL_IP=$((ip -4 addr show docker0 | grep -Po 'inet \K[\d.]+') || hostname -I | awk '{print $1}') source $WORKSPACE/plans/cps/test.properties export $(cut -d= -f1 $WORKSPACE/plans/cps/test.properties)