test/nvme-cli: check if cuse device is destroyed after detach

Change-Id: If1fdafd282c898ccd4e7427d575507c1df4bd778
Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/473294
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
Tomasz Kulasek 2019-11-05 14:39:25 +01:00 committed by Tomasz Zawadzki
parent 46316bb5db
commit 716f5e77d0

View File

@ -64,14 +64,12 @@ if [ ! -c /dev/spdk/nvme0 ]; then
return 1
fi
$rpc_py bdev_nvme_cuse_unregister -n Nvme0
$rpc_py bdev_nvme_detach_controller Nvme0
sleep 1
if [ -c /dev/spdk/nvme0 ]; then
return 1
fi
$rpc_py bdev_nvme_detach_controller Nvme0
trap - SIGINT SIGTERM EXIT
killprocess $spdk_tgt_pid