From 817e91b7ce85250c55f5e15fb88efad13430a126 Mon Sep 17 00:00:00 2001 From: Darek Stojaczyk Date: Fri, 28 Feb 2020 15:23:56 +0100 Subject: [PATCH] test/lvol: use rpc daemon throughout all lvol tests $ time ./test/lvol/lvol2.sh Without rpc daemon (before): real 0m52.195s user 1m29.316s sys 0m7.660s With rpc daemon (now): real 0m12.452s user 0m13.505s sys 0m3.798s Note we only have about a half of lvol tests ported to bash atm, so this time difference would only grow. Change-Id: I28ec0b92f19e0c7fd48392a72f32535c1106b8be Signed-off-by: Darek Stojaczyk Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1058 Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Jim Harris --- test/lvol/common.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/lvol/common.sh b/test/lvol/common.sh index 0d72f1b4d..1bbdb2485 100644 --- a/test/lvol/common.sh +++ b/test/lvol/common.sh @@ -8,10 +8,6 @@ LVS_DEFAULT_CLUSTER_SIZE=$(( LVS_DEFAULT_CLUSTER_SIZE_MB * 1024 * 1024 )) LVS_DEFAULT_CAPACITY_MB=$(( MALLOC_SIZE_MB - LVS_DEFAULT_CLUSTER_SIZE_MB )) LVS_DEFAULT_CAPACITY=$(( LVS_DEFAULT_CAPACITY_MB * 1024 * 1024 )) -function rpc_cmd() { - $rootdir/scripts/rpc.py "$@" -} - function check_leftover_devices() { leftover_bdevs=$(rpc_cmd bdev_get_bdevs) [ "$(jq length <<< "$leftover_bdevs")" == "0" ]