提交 3d9a7023 编写于 作者: A Aihua Liang

block_resize:add case for data plane enabled

Signed-off-by:Aihua Liang<aliang@redhat.com>
上级 700b76e0
......@@ -73,7 +73,13 @@ def run(test, params, env):
drive_path = ""
if params.get("os_type") == 'linux':
drive_id = params["blk_extra_params_%s" % data_image].split("=")[1]
pattern = r"(serial|wwn)=(\w+)"
match = re.search(pattern, params["blk_extra_params_%s"
% data_image], re.M)
if match:
drive_id = match.group(2)
else:
test.fail("No available tag to get drive id")
drive_path = utils_misc.get_linux_drive_path(session, drive_id)
if not drive_path:
raise error.TestError("Failed to get '%s' drive path"
......
......@@ -59,3 +59,14 @@
disk_change_ratio = 1.5 0.5
RHEL.5:
need_reboot = yes
variants:
- @default:
- data_plane:
no Host_RHEL.m6
only virtio_blk virtio_scsi
iothreads = iothread0
virtio_blk:
blk_extra_params_stg += ",iothread=${iothreads}"
virtio_scsi:
no Host_RHEL.m7.u0, Host_RHEL.m7.u1, Host_RHEL.m7.u2
bus_extra_params_stg = "iothread=${iothreads}"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册