提交 6098611f 编写于 作者: M Mike Qiu 提交者: Lucas Meneghel Rodrigues

qemu.enospc:update the test.bindir to data_dir.get_data_dir

Now use test.bindir will not find the image file, just update it
to new interface data_dir.get_data_dir
Signed-off-by: NMike Qiu <qiudayu@linux.vnet.ibm.com>
上级 ccdb302a
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
images += " stg" images += " stg"
drive_werror = stop drive_werror = stop
drive_cache = none drive_cache = none
image_name_stg = enospc image_name_stg = images/enospc
image_format_stg = qcow2 image_format_stg = qcow2
image_boot_stg = no image_boot_stg = no
image_snapshot_stg = no image_snapshot_stg = no
......
...@@ -146,9 +146,9 @@ def run_enospc(test, params, env): ...@@ -146,9 +146,9 @@ def run_enospc(test, params, env):
for image_name in vm.params.objects("images"): for image_name in vm.params.objects("images"):
image_params = vm.params.object_params(image_name) image_params = vm.params.object_params(image_name)
try: try:
image = qemu_storage.QemuImg(image_params, test.bindir, image = qemu_storage.QemuImg(image_params,
image_name) data_dir.get_data_dir(), image_name)
image.check_image(image_params, test.bindir) image.check_image(image_params, data_dir.get_data_dir())
except (virt_vm.VMError, error.TestWarn), e: except (virt_vm.VMError, error.TestWarn), e:
logging.error(e) logging.error(e)
logging.info("Guest paused, extending Logical Volume size") logging.info("Guest paused, extending Logical Volume size")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册