Commit c1352c21 authored by Liang Yan's avatar Liang Yan Committed by Daniel Verkamp
Browse files

test:update common.sh to get port IP in Ubuntu system



The get_available_rdma_ips function can't get port IP in ubuntu
system. Update the function to fix this issue.

Change-Id: I1b8a0b1159ce7919f883a21067de78d5166954b2
Signed-off-by: default avatarLiang Yan <liang.z.yan@intel.com>
Reviewed-on: https://review.gerrithub.io/390613


Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent ba3d96e8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -120,7 +120,7 @@ function get_rdma_if_list()
function get_ip_address()
{
	interface=$1
	ifconfig $interface | grep "inet " | awk '{print $2}'
	ifconfig $interface | grep "inet " | awk '{print $2}' | sed 's/[^0-9\.]//g'
}

function nvmfcleanup()