提交 88e90e37 编写于 作者: C Cong Li

qemu.tests: Unify usage of "source_image" in block_stream and drive_mirror related cases.

Signed-off-by: NCong Li <coli@redhat.com>
上级 2fe3a505
......@@ -31,7 +31,7 @@ def run(test, params, env):
5) Check for backing file in sn1
6) Check for the size of the sn1 should not exceeds image.img
"""
tag = params.get("source_images", "image1")
tag = params.get("source_image", "image1")
stream_test = BlockStreamTest(test, params, env, tag)
try:
image_file = stream_test.get_image_file()
......
......@@ -65,7 +65,7 @@ def run(test, params, env):
:param params: Dictionary with the test parameters
:param env: Dictionary with test environment.
"""
tag = params.get("source_images", "image1")
tag = params.get("source_image", "image1")
backingfile_test = BlockStreamCheckBackingfile(test, params, env, tag)
try:
backingfile_test.create_snapshots()
......
......@@ -54,7 +54,7 @@ def run(test, params, env):
:param params: Dictionary with the test parameters
:param env: Dictionary with test environment.
"""
tag = params.get("source_images", "image1")
tag = params.get("source_image", "image1")
reboot_test = BlockStreamReboot(test, params, env, tag)
try:
reboot_test.action_before_start()
......
......@@ -31,7 +31,7 @@ def run(test, params, env):
:param params: Dictionary with the test parameters
:param env: Dictionary with test environment.
"""
tag = params.get("source_images", "image1")
tag = params.get("source_image", "image1")
simple_test = BlockStreamSimple(test, params, env, tag)
try:
simple_test.create_snapshots()
......
......@@ -19,9 +19,9 @@
#block_reopen_cmd = "__com.redhat_drive-reopen"
wait_timeout = 6000
# wait_timeout: wait xx seconds for block mirror job go into steady status, aka offset equal image length
source_images = "image1"
source_image = "image1"
target_image_image1 = "target"
# source_images: set which image will be mirroring to target, now only a image at one time;
# source_image: set which image will be mirroring to target, now only a image at one time;
full_copy_image1 = "full"
#for full image or top most
default_speed_image1 = 0
......
......@@ -19,9 +19,9 @@
#block_reopen_cmd = "__com.redhat_drive-reopen"
wait_timeout = 6000
# wait_timeout: wait xx seconds for block mirror job go into steady status, aka offset equal image length
source_images = "image1"
source_image = "image1"
target_image_image1 = "target"
# source_images: set which image will be mirroring to target, now only a image at one time;
# source_image: set which image will be mirroring to target, now only a image at one time;
full_copy_image1 = "full"
#for full image or top most
default_speed_image1 = 0
......
......@@ -15,7 +15,7 @@ def run_drive_mirror_cancel(test, params, env):
4). flush iptables chain then check job canceled in 10s
"""
tag = params.get("source_images", "image1")
tag = params.get("source_image", "image1")
mirror_test = drive_mirror.DriveMirror(test, params, env, tag)
try:
mirror_test.start()
......
......@@ -24,7 +24,7 @@ def run(test, params, env):
"qemu-img compare" is used to verify disk is mirrored successfully.
"""
tag = params.get("source_images", "image1")
tag = params.get("source_image", "image1")
qemu_img = qemu_storage.QemuImg(params, data_dir.get_data_dir(), tag)
mirror_test = drive_mirror.DriveMirror(test, params, env, tag)
try:
......
......@@ -48,7 +48,7 @@ def run(test, params, env):
:param params: Dictionary with the test parameters
:param env: Dictionary with test environment.
"""
tag = params.get("source_images", "image1")
tag = params.get("source_image", "image1")
powerdown_test = DriveMirrorPowerdown(test, params, env, tag)
try:
powerdown_test.action_before_start()
......
......@@ -13,7 +13,7 @@ def run(test, params, env):
:param params: Dictionary with the test parameters
:param env: Dictionary with test environment.
"""
tag = params.get("source_images", "image1")
tag = params.get("source_image", "image1")
reboot_test = drive_mirror.DriveMirror(test, params, env, tag)
try:
reboot_test.reboot("system_reset", False)
......
......@@ -45,7 +45,7 @@ def run(test, params, env):
:param params: Dictionary with the test parameters
:param env: Dictionary with test environment.
"""
tag = params.get("source_images", "image1")
tag = params.get("source_image", "image1")
repeats = int(params.get("repeat_times", 3))
simple_test = DriveMirrorSimple(test, params, env, tag)
try:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册