Commit e2a4d0ee authored by Michal Berger's avatar Michal Berger Committed by Konrad Sztyber
Browse files

test/bdev: Fix raid_resize_data_offset_test()



There was a mishap between the following commits:

3cd7b237, 141bc565

where former didn't include proper changes introduced by the
latter. Adjust the test so it does now.

Change-Id: Ibf3c3496899436659df4e5c7c1fe999aa4f9bd5b
Signed-off-by: default avatarMichal Berger <michal.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24666


Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Bypass-Merge-Requirements: Konrad Sztyber <konrad.sztyber@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent ca98e7a6
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -925,17 +925,17 @@ function raid_resize_superblock_test() {

function raid_resize_data_offset_test() {

	$rootdir/test/app/bdev_svc/bdev_svc -r $rpc_server -i 0 -L bdev_raid &
	$rootdir/test/app/bdev_svc/bdev_svc -i 0 -L bdev_raid &
	raid_pid=$!
	echo "Process raid pid: $raid_pid"
	waitforlisten $raid_pid $rpc_server
	waitforlisten $raid_pid

	# Create three base bdevs with one null bdev to be replaced later
	$rpc_py bdev_malloc_create -b malloc0 64 $base_blocklen -o 16
	$rpc_py bdev_malloc_create -b malloc1 64 $base_blocklen -o 16
	$rpc_py bdev_null_create null0 64 $base_blocklen

	$rpc_py bdev_raid_create -n Raid -r 1 -b "malloc0 malloc1 null0" -s
	$rpc_py bdev_raid_create -n Raid -r 1 -b "'malloc0 malloc1 null0'" -s

	# Check data_offset
	(($($rpc_py bdev_raid_get_bdevs all | jq -r '.[].base_bdevs_list[2].data_offset') == 2048))