Commit a4d9919b authored by Seth Howell's avatar Seth Howell Committed by Tomasz Zawadzki
Browse files

test/nvmf: fix check_ip_is_soft_roce



A recent change to the way we grep to determine whether an IP is
soft_roce caused this functions return value to flip. This is causing
the multiconnection.sh tests to fail on nightly.
This change flips the return value back.

fixes: f924c94b

Change-Id: If524ff695593365bb7b26bab8efe71213737858b
Signed-off-by: default avatarSeth Howell <seth.howell@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/475318


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
parent b529dbb1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -247,9 +247,9 @@ function check_ip_is_soft_roce()
	if hash rxe_cfg; then
		dev=$(ip -4 -o addr show | grep $IP | cut -d" " -f2)
		if (rxe_cfg | grep $dev | awk '{print $4}' | grep -q "rxe"); then
			return 1
		else
			return 0
		else
			return 1
		fi
	else
		return 1