Commit 6888292b authored by Ben Walker's avatar Ben Walker Committed by Jim Harris
Browse files

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: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/469624


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
parent b60a249b
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -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() {