test/compress: Wait for bdevs to be created
This shouldn't be necessary - the RPCs shouldn't complete until the bdevs are fully created. But testing a theory as to why another patch is failing. Change-Id: I72c471547a7dfbb57d695bf8a3a6fb8428a2ebcd Signed-off-by: Ben Walker <benjamin.walker@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/469624 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
b60a249bea
commit
6888292ba5
@ -27,18 +27,26 @@ function destroy_vols() {
|
||||
|
||||
function create_vols() {
|
||||
$rootdir/scripts/gen_nvme.sh --json | $rpc_py load_subsystem_config
|
||||
waitforbdev Nvme0n1
|
||||
|
||||
$rpc_py bdev_lvol_create_lvstore Nvme0n1 lvs0
|
||||
$rpc_py bdev_lvol_create -t -l lvs0 lv0 100
|
||||
waitforbdev lvs0/lv0
|
||||
|
||||
$rpc_py bdev_lvol_create -t -l lvs0 lv1 100
|
||||
waitforbdev lvs0/lv1
|
||||
|
||||
# use QAT for lv0, if the test system does not have QAT this will
|
||||
# fail which is what we want
|
||||
$rpc_py set_compress_pmd -p 1
|
||||
$rpc_py bdev_compress_create -b lvs0/lv0 -p /tmp/pmem
|
||||
waitforbdev COMP_lvs0/lv0
|
||||
|
||||
# use ISAL for lv1, if ISAL is for some reason not available this will
|
||||
# fail which is what we want
|
||||
$rpc_py set_compress_pmd -p 2
|
||||
compress_bdev=$($rpc_py bdev_compress_create -b lvs0/lv1 -p /tmp/pmem)
|
||||
waitforbdev $compress_bdev
|
||||
$rpc_py bdev_compress_create -b lvs0/lv1 -p /tmp/pmem
|
||||
waitforbdev COMP_lvs0/lv1
|
||||
}
|
||||
|
||||
function run_bdevio() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user