test/iscsi: only run NVMe-oF test when enabled

Check the SPDK_TEST_NVMF flag before running the iscsi_tgt + NVMe-oF
host test.

Change-Id: I0d545c98f188edefc089fb79e2879d5d307726f5
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/391027
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ziye Yang <optimistyzy@gmail.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Daniel Verkamp 2017-12-08 13:28:19 -07:00 committed by Jim Harris
parent 59970a89be
commit 9daf838db0

View File

@ -53,10 +53,13 @@ fi
trap - SIGINT SIGTERM EXIT trap - SIGINT SIGTERM EXIT
kill_stub kill_stub
# TODO: enable remote NVMe controllers with multi-process so that if [ $SPDK_TEST_NVMF -eq 1 ]; then
# we can use the stub for this test # TODO: enable remote NVMe controllers with multi-process so that
#Test configure remote NVMe device from rpc # we can use the stub for this test
run_test ./test/iscsi_tgt/nvme_remote/fio_remote_nvme.sh 0 # Test configure remote NVMe device from rpc
#Test configure remote NVMe device from conf file run_test ./test/iscsi_tgt/nvme_remote/fio_remote_nvme.sh 0
run_test ./test/iscsi_tgt/nvme_remote/fio_remote_nvme.sh 1 # Test configure remote NVMe device from conf file
run_test ./test/iscsi_tgt/nvme_remote/fio_remote_nvme.sh 1
fi
timing_exit iscsi_tgt timing_exit iscsi_tgt