test/cuse: refer to "/dev/spdk/nvme" as base for cuse devices
Instead of refering to single controller, allow to point and check different ones. Next patch in series will verify lack of existance of "/dev/spdk/nvme1". Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: I9656ac06e86c8946b45b2ffc93119d31a1ccc5ca Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1979 Community-CI: Mellanox Build Bot Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
ef6ffb39d6
commit
5772521a84
@ -8,7 +8,7 @@ source $rootdir/test/common/autotest_common.sh
|
||||
rpc_py=$rootdir/scripts/rpc.py
|
||||
|
||||
bdf=$(get_first_nvme_bdf)
|
||||
ctrlr="/dev/spdk/nvme0"
|
||||
ctrlr_base="/dev/spdk/nvme"
|
||||
|
||||
$rootdir/scripts/setup.sh
|
||||
|
||||
@ -23,7 +23,7 @@ $rpc_py bdev_nvme_cuse_register -n Nvme0
|
||||
|
||||
sleep 5
|
||||
|
||||
if [ ! -c "$ctrlr" ]; then
|
||||
if [ ! -c "${ctrlr_base}0" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@ -32,7 +32,7 @@ $rpc_py bdev_nvme_get_controllers
|
||||
|
||||
$rpc_py bdev_nvme_cuse_unregister -n Nvme0
|
||||
sleep 1
|
||||
if [ -c "$ctrlr" ]; then
|
||||
if [ -c "${ctrlr_base}0" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@ -42,7 +42,7 @@ $rpc_py bdev_nvme_cuse_unregister -n Nvme0 && false
|
||||
$rpc_py bdev_nvme_cuse_register -n Nvme0
|
||||
sleep 1
|
||||
|
||||
if [ ! -c "$ctrlr" ]; then
|
||||
if [ ! -c "${ctrlr_base}0" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user