diff --git a/test/nvmf/connect_disconnect/connect_disconnect.sh b/test/nvmf/connect_disconnect/connect_disconnect.sh index 6f447be42..c619d9160 100755 --- a/test/nvmf/connect_disconnect/connect_disconnect.sh +++ b/test/nvmf/connect_disconnect/connect_disconnect.sh @@ -43,18 +43,20 @@ $rpc_py nvmf_subsystem_create nqn.2016-06.io.spdk:cnode1 -a -s SPDK0000000000000 $rpc_py nvmf_subsystem_add_ns nqn.2016-06.io.spdk:cnode1 $bdev $rpc_py nvmf_subsystem_add_listener nqn.2016-06.io.spdk:cnode1 -t rdma -a $NVMF_FIRST_TARGET_IP -s 4420 -if [ $RUN_NIGHTLY_FAILING -eq 1 ]; then +if [ $RUN_NIGHTLY -eq 1 ]; then num_iterations=200 else num_iterations=10 fi +set +x for i in $(seq 1 $num_iterations); do nvme connect -t rdma -n "nqn.2016-06.io.spdk:cnode1" -a "$NVMF_FIRST_TARGET_IP" -s "4420" waitforblk "nvme0n1" nvme disconnect -n "nqn.2016-06.io.spdk:cnode1" waitforblk_disconnect "nvme0n1" done +set -x trap - SIGINT SIGTERM EXIT