test/nvmf: call nvmftestinit before checking IP.
The first IP is not configured until after nvmftestinit. Change-Id: Icfc4ce40e357d36da2c50fefb3b967806966eb80 Signed-off-by: Seth Howell <seth.howell@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/476648 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Maciej Wawryk <maciejx.wawryk@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Community-CI: Broadcom SPDK FC-NVMe CI <spdk-ci.pdl@broadcom.com>
This commit is contained in:
parent
15fd9afbad
commit
87dea05be4
@ -27,14 +27,15 @@ function disconnect_init()
|
|||||||
|
|
||||||
# There is an intermittent error relating to this test and Soft-RoCE. for now, just
|
# There is an intermittent error relating to this test and Soft-RoCE. for now, just
|
||||||
# skip this test if we are using rxe. TODO: get to the bottom of GitHub issue #1043
|
# skip this test if we are using rxe. TODO: get to the bottom of GitHub issue #1043
|
||||||
|
nvmftestinit
|
||||||
if [ $TEST_TRANSPORT == "rdma" ] && check_ip_is_soft_roce $NVMF_FIRST_TARGET_IP; then
|
if [ $TEST_TRANSPORT == "rdma" ] && check_ip_is_soft_roce $NVMF_FIRST_TARGET_IP; then
|
||||||
echo "Using software RDMA, skipping the target disconnect tests."
|
echo "Using software RDMA, skipping the target disconnect tests."
|
||||||
|
nvmftestfini
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
timing_enter target_disconnect
|
timing_enter target_disconnect
|
||||||
|
|
||||||
nvmftestinit
|
|
||||||
|
|
||||||
# Test to make sure we don't segfault or access null pointers when we try to connect to
|
# Test to make sure we don't segfault or access null pointers when we try to connect to
|
||||||
# a discovery controller that doesn't exist yet.
|
# a discovery controller that doesn't exist yet.
|
||||||
|
Loading…
Reference in New Issue
Block a user