diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2015-12-09 16:16:21 +0100 |
---|---|---|
committer | jose.lausuch <jose.lausuch@ericsson.com> | 2015-12-09 16:22:08 +0100 |
commit | e82320f8623d0eb4fe9add230166a96ba464da66 (patch) | |
tree | e9d8f97a5baa5ad37a6d2b32bfee34639cf704fd /jjb | |
parent | 9f91697aaef0465dda0b0ad488c9585d28aa7c6f (diff) |
Fix command to get the Instack-VM IP in Functest for Apex
Change-Id: I54f4e44bb84bf90526b95650d58e87dfda06ddb2
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/functest/functest.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jjb/functest/functest.yml b/jjb/functest/functest.yml index 0edcbabb9..9e5e71b16 100644 --- a/jjb/functest/functest.yml +++ b/jjb/functest/functest.yml @@ -450,8 +450,8 @@ #!/bin/bash set +e if [[ ${INSTALLER_TYPE} == 'apex' ]]; then - INSTALLER_IP=$(cat instack /var/lib/libvirt/dnsmasq/default.leases \ - |sed 's/.*192/192/g' | sed 's/\ in.*//g') + INSTALLER_IP=$(grep instack /var/lib/libvirt/dnsmasq/default.leases \ + |awk '{print $3}' | head -n 1) sshkey="-v /root/.ssh/id_rsa:/root/.ssh/id_rsa" fi echo "Functest: Start Docker and prepare environment" |