nvmf: Disconnect the initiator on test exit.
Change-Id: I8e640a77dc4c17582ff5ec0a4daba4f1d509c30c Signed-off-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
8c094266ac
commit
0e1dcce24a
@ -81,8 +81,6 @@ function allocate_nic_ips()
|
||||
|
||||
function nvmfcleanup()
|
||||
{
|
||||
sync
|
||||
sleep 5
|
||||
sync
|
||||
rmmod nvme-rdma
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user