test/ftl: add cases line to cover RPC bdev_ftl_unload

Change-Id: I34074846d812d9bdf47af25f1275978c3508084b
Signed-off-by: Hailiang Wang <hailiangx.e.wang@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15696
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
wanghailiangx 2022-11-30 09:44:29 -05:00 committed by Jim Harris
parent 41c16a6dab
commit 1b566ac7d9
5 changed files with 6 additions and 0 deletions

View File

@ -77,6 +77,7 @@ md5sum $testdir/testfile > $testdir/testfile.md5
$spdk_dd -m 0x2 -r /var/tmp/spdk_dd.sock --if=$testdir/testfile --of=/dev/nbd0 --bs=$block_size --count=$data_size --oflag=direct
sync /dev/nbd0
$rpc_py nbd_stop_disk /dev/nbd0
$rpc_py bdev_ftl_unload -b ftl0
# Force kill bdev service (dirty shutdown) and start it again
kill -9 $svcpid

View File

@ -70,6 +70,8 @@ waitforbdev ftl0
echo ']}'
) > $FTL_JSON_CONF
$rpc_py bdev_ftl_unload -b ftl0
killprocess $svcpid
trap - SIGINT SIGTERM EXIT

View File

@ -62,6 +62,7 @@ $rpc_py -t $timeout $ftl_construct_args
$rpc_py save_subsystem_config -n bdev
echo ']}'
) > $testdir/config/ftl.json
$rpc_py bdev_ftl_unload -b ftl0
killprocess $svcpid
# Generate random data and calculate checksum

View File

@ -58,6 +58,7 @@ waitforbdev ftl0
bdev_info=$($rpc_py bdev_get_bdevs -b ftl0)
nb=$(jq ".[] .num_blocks" <<< "$bdev_info")
$rpc_py bdev_ftl_unload -b ftl0
killprocess $svcpid

View File

@ -53,6 +53,7 @@ waitforbdev ftl0
$rpc_py save_subsystem_config -n bdev
echo ']}'
) > $FTL_JSON_CONF
$rpc_py bdev_ftl_unload -b ftl0
killprocess $svcpid