aboutsummaryrefslogtreecommitdiffstats
path: root/plans/portal-sdk
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-03-23 12:57:08 +0100
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-03-23 12:57:08 +0100
commit5f7b64b22b44e0866842b778760cf5ccfc23201b (patch)
treef14754e50a2dd61e21212951a3007a1d27e086de /plans/portal-sdk
parent940b6d936da7a3be6cfd5bd903ef40c6da9592ae (diff)
Fix getting local ip address in CSIT setup scripts
Assumption that last field in routing entry is the local src address is no longer valide in the latest iproute2 releases as it adds UID information. The correct way is to get the 7th field, not the last. Change-Id: Id2289fbf9b916ccab3ac7949d4f8118ef0571935 Issue-ID: INT-1497 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'plans/portal-sdk')
-rw-r--r--plans/portal-sdk/testsuite/setup.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/plans/portal-sdk/testsuite/setup.sh b/plans/portal-sdk/testsuite/setup.sh
index 6510311c..c75e0788 100644
--- a/plans/portal-sdk/testsuite/setup.sh
+++ b/plans/portal-sdk/testsuite/setup.sh
@@ -11,7 +11,7 @@ XVFBPID=$!
# Get pid of this spawned process to make sure we kill the correct process later
#Get current IP of VM
-HOST_IP=$(ip route get 8.8.8.8 | awk '/8.8.8.8/ {print $NF}')
+HOST_IP=$(ip route get 8.8.8.8 | awk '/8.8.8.8/ {print $7}')
export HOST_IP=${HOST_IP}
@@ -172,7 +172,7 @@ fi
#Get current IP of VM
-HOST_IP=$(ip route get 8.8.8.8 | awk '/8.8.8.8/ {print $NF}')
+HOST_IP=$(ip route get 8.8.8.8 | awk '/8.8.8.8/ {print $7}')
export HOST_IP=${HOST_IP}
#docker logs deliveries_portal-db_1