diff options
author | lukegleeson <luke.gleeson@est.tech> | 2022-05-10 13:38:32 +0100 |
---|---|---|
committer | lukegleeson <luke.gleeson@est.tech> | 2022-05-10 13:38:32 +0100 |
commit | 59d2520ccc8911ee6eaffa03f4113458f5684895 (patch) | |
tree | 85914de3c54df29b1e078dd46c51be53a51995da /csit/plans | |
parent | 47d6b392e984181418b920d0ea8fe658f6375acc (diff) |
Improve Local Running of CSIT Tests
Issue-ID: CPS-734
Signed-off-by: lukegleeson <luke.gleeson@est.tech>
Change-Id: Iff92f43dc69cdaf3e1e78551f68ecfb08bde4b93
Diffstat (limited to 'csit/plans')
-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) |