test/nvmf: use --transport=rdma in nvmf.sh
We also no longer hardcode TEST_TRANSPORT=rdma. Users of the individual test scripts must now explicitly pass --transport=rdma. Support for tcp will be coming in future patches. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I819d69cb0906eb27b692eb2755aca5085298d779 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/456685 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Seth Howell <seth.howell5141@gmail.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
43db4eff70
commit
02c1c5a69a
@ -201,7 +201,6 @@ if [ -z "$output_dir" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
TEST_MODE=
|
TEST_MODE=
|
||||||
TEST_TRANSPORT=rdma
|
|
||||||
for i in "$@"; do
|
for i in "$@"; do
|
||||||
case "$i" in
|
case "$i" in
|
||||||
--iso)
|
--iso)
|
||||||
|
@ -157,6 +157,10 @@ function nvmfcleanup()
|
|||||||
|
|
||||||
function nvmftestinit()
|
function nvmftestinit()
|
||||||
{
|
{
|
||||||
|
if [ -z $TEST_TRANSPORT ]; then
|
||||||
|
echo "transport not specified - use --transport= to specify"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
if [ "$TEST_MODE" == "iso" ]; then
|
if [ "$TEST_MODE" == "iso" ]; then
|
||||||
$rootdir/scripts/setup.sh
|
$rootdir/scripts/setup.sh
|
||||||
rdma_device_init
|
rdma_device_init
|
||||||
|
@ -13,7 +13,7 @@ timing_enter nvmf_tgt
|
|||||||
|
|
||||||
trap "exit 1" SIGINT SIGTERM EXIT
|
trap "exit 1" SIGINT SIGTERM EXIT
|
||||||
|
|
||||||
TEST_ARGS=
|
TEST_ARGS=--transport=rdma
|
||||||
|
|
||||||
run_test suite test/nvmf/target/filesystem.sh $TEST_ARGS
|
run_test suite test/nvmf/target/filesystem.sh $TEST_ARGS
|
||||||
run_test suite test/nvmf/target/discovery.sh $TEST_ARGS
|
run_test suite test/nvmf/target/discovery.sh $TEST_ARGS
|
||||||
|
Loading…
Reference in New Issue
Block a user