diff options
author | Toine Siebelink <toine.siebelink@est.tech> | 2022-05-10 14:08:37 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2022-05-10 14:08:37 +0000 |
commit | f18001f3c8862b4887f29b060a2434aca1422dea (patch) | |
tree | b388bc6bc243bd23c6162ec6679f6a0cd88ebb23 | |
parent | e4f3b392b383910398a7fe8c9315d06e9c81e930 (diff) | |
parent | 59d2520ccc8911ee6eaffa03f4113458f5684895 (diff) |
Merge "Improve Local Running of CSIT Tests"
-rwxr-xr-x | csit/plans/cps/setup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/csit/plans/cps/setup.sh b/csit/plans/cps/setup.sh index 6ef4c9a1fe..d633b1ee26 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) |