test/blockdev.sh: filter out partitions in nbd test

Change-Id: Iaa85545c12f72939b8aa23147a7151d6849d9be1
Signed-off-by: Seth Howell <seth.howell@intel.com>
Reviewed-on: https://review.gerrithub.io/400192
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Tested-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Seth Howell 2018-02-15 17:05:52 -07:00 committed by Daniel Verkamp
parent 7ee8684c84
commit a66e4300c7

View File

@ -25,7 +25,7 @@ function nbd_function_test() {
local rpc_server=/var/tmp/spdk-nbd.sock
local conf=$1
local nbd_num=6
local nbd_all=(`ls /dev/nbd*`)
local nbd_all=(`ls /dev/nbd* | grep -v p`)
local bdev_all=($bdevs_name)
local nbd_list=(${nbd_all[@]:0:$nbd_num})
local bdev_list=(${bdev_all[@]:0:$nbd_num})