Code Review
/
integration
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix getting local ip address in CSIT setup scripts
[integration/csit.git]
/
plans
/
portal
/
testsuite
/
setup.sh
diff --git
a/plans/portal/testsuite/setup.sh
b/plans/portal/testsuite/setup.sh
index
76cf5f3
..
8932007
100644
(file)
--- a/
plans/portal/testsuite/setup.sh
+++ b/
plans/portal/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
# 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}
export HOST_IP=${HOST_IP}
@@
-172,7
+172,7
@@
fi
#Get current IP of VM
#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
export HOST_IP=${HOST_IP}
docker logs deliveries_portal-db_1