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: Seth Howell <seth.howell@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/475318 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
b529dbb1d0
commit
a4d9919b67
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user