Commit 0e1dcce2 authored by Ben Walker's avatar Ben Walker
Browse files

nvmf: Disconnect the initiator on test exit.



Change-Id: I8e640a77dc4c17582ff5ec0a4daba4f1d509c30c
Signed-off-by: default avatarBen Walker <benjamin.walker@intel.com>
parent 8c094266
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -81,8 +81,6 @@ function allocate_nic_ips()

function nvmfcleanup()
{
	sync
	sleep 5
	sync
	rmmod nvme-rdma
}
+3 −0
Original line number Diff line number Diff line
@@ -60,6 +60,9 @@ for dev in $devs; do
	done
done

sync
nvme disconnect -n "nqn.2016-06.io.spdk:cnode1"

trap - SIGINT SIGTERM EXIT

nvmfcleanup
+3 −0
Original line number Diff line number Diff line
@@ -35,6 +35,9 @@ $testdir/nvmf_fio.py 4096 1 randrw 1 verify
$testdir/nvmf_fio.py 4096 128 rw 1 verify
$testdir/nvmf_fio.py 4096 128 randrw 1 verify

sync
nvme disconnect -n "nqn.2016-06.io.spdk:cnode1"

rm -f ./local-job0-0-verify.state

trap - SIGINT SIGTERM EXIT