提交 8d32654c 编写于 作者: Y Yang Feng

Merge pull request #592 from zhouqt/minor-fix

qemu: Minor fixes for qemu test cases
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
cdroms = "" cdroms = ""
ide: ide:
# 3 + boot disk = 4 disks # 3 + boot disk = 4 disks
image_extra_params = ""
stg_image_num = 3 stg_image_num = 3
stg_params = "image_size:1G,10G,5G " stg_params = "image_size:1G,10G,5G "
stg_params += "image_format:qcow2,qcow2,raw " stg_params += "image_format:qcow2,qcow2,raw "
......
...@@ -34,9 +34,9 @@ def run_boot_savevm(test, params, env): ...@@ -34,9 +34,9 @@ def run_boot_savevm(test, params, env):
vm.create(params=params) vm.create(params=params)
vm.verify_alive() # This shouldn't require logging in to guest vm.verify_alive() # This shouldn't require logging in to guest
savevm_delay = float(params.get("savevm_delay")) savevm_delay = float(params["savevm_delay"])
savevm_login_delay = float(params.get("savevm_login_delay")) savevm_login_delay = float(params["savevm_login_delay"])
savevm_login_timeout = float(params.get("savevm_timeout")) savevm_login_timeout = float(params["savevm_timeout"])
savevm_statedir = params.get("savevm_statedir", tempfile.gettempdir()) savevm_statedir = params.get("savevm_statedir", tempfile.gettempdir())
fd, savevm_statefile = tempfile.mkstemp(suffix='.img', prefix=vm.name+'-', fd, savevm_statefile = tempfile.mkstemp(suffix='.img', prefix=vm.name+'-',
dir=savevm_statedir) dir=savevm_statedir)
......
...@@ -16,10 +16,12 @@ ...@@ -16,10 +16,12 @@
kill_vm_on_error = yes kill_vm_on_error = yes
variants: variants:
- fmt_qcow2: - fmt_qcow2:
image_extra_params = ""
image_format_stg = qcow2 image_format_stg = qcow2
image_format_stg0 = qcow2 image_format_stg0 = qcow2
image_format_stg1 = qcow2 image_format_stg1 = qcow2
- fmt_raw: - fmt_raw:
image_extra_params = ""
image_format_stg = raw image_format_stg = raw
image_format_stg0 = raw image_format_stg0 = raw
image_format_stg1 = raw image_format_stg1 = raw
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
type = clock_getres type = clock_getres
sub_test = guest_suspend sub_test = guest_suspend
- without_kvmclock: - without_kvmclock:
cpu_model_flags += " -kvmclock" cpu_model_flags += ",-kvmclock"
variants: variants:
- guest_s3: - guest_s3:
guest_suspend_type = "mem" guest_suspend_type = "mem"
......
...@@ -203,6 +203,7 @@ ...@@ -203,6 +203,7 @@
- block_device: - block_device:
image_snapshot = yes image_snapshot = yes
images += " stg stg2 stg3 stg4" images += " stg stg2 stg3 stg4"
image_extra_params = ""
image_format_stg = raw image_format_stg = raw
image_name_stg = images/storage image_name_stg = images/storage
image_size_stg = 2G image_size_stg = 2G
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册