test/nvmf: always use loopback when running tests in --iso mode
Using the physical NIC interfaces is really designed more for CI. Don't try to use the physical NIC interfaces when running tests locally in --iso mode. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I6e39663784e99f99fd1d0e7ed937fdc661ee2f44 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9602 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
974271125d
commit
9c968f8e05
@ -351,7 +351,7 @@ function nvmf_tcp_init() {
|
||||
NVMF_INITIATOR_IP=10.0.0.1
|
||||
NVMF_FIRST_TARGET_IP=10.0.0.2
|
||||
TCP_INTERFACE_LIST=($(get_tcp_if_list_by_driver))
|
||||
if ((${#TCP_INTERFACE_LIST[@]} == 0)); then
|
||||
if ((${#TCP_INTERFACE_LIST[@]} == 0)) || [ "$TEST_MODE" == "iso" ]; then
|
||||
nvmf_veth_init
|
||||
return 0
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user