test/lvol: fix shellcheck failures on master.
Change-Id: Ia3dd62384a34564092b352487042a1eb2908f9fc Signed-off-by: Seth Howell <seth.howell@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/477079 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
283890cb71
commit
3369105f31
@ -7,11 +7,11 @@ LVS_DEFAULT_CAPACITY_MB=$(( MALLOC_SIZE_MB - LVS_DEFAULT_CLUSTER_SIZE_MB ))
|
|||||||
LVS_DEFAULT_CAPACITY=$(( LVS_DEFAULT_CAPACITY_MB * 1024 * 1024 ))
|
LVS_DEFAULT_CAPACITY=$(( LVS_DEFAULT_CAPACITY_MB * 1024 * 1024 ))
|
||||||
|
|
||||||
function rpc_cmd() {
|
function rpc_cmd() {
|
||||||
$rootdir/scripts/rpc.py $@
|
$rootdir/scripts/rpc.py "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
function run_lvol_test() {
|
function run_lvol_test() {
|
||||||
run_test suite $@
|
run_test suite "$@"
|
||||||
|
|
||||||
leftover_bdevs=$(rpc_cmd bdev_get_bdevs)
|
leftover_bdevs=$(rpc_cmd bdev_get_bdevs)
|
||||||
[ "$(jq length <<< "$leftover_bdevs")" == "0" ]
|
[ "$(jq length <<< "$leftover_bdevs")" == "0" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user