提交 00cc0e70 编写于 作者: W Wei Jiangang

Merge pull request #654 from pingl2016/1341920

qemu_io_blkdebug: fix catcing exception for process.CmdError
......@@ -4,6 +4,7 @@ import ConfigParser
from autotest.client.shared import error
from autotest.client import utils
from avocado.utils import process
from virttest import qemu_io
from virttest import data_dir
......@@ -94,8 +95,8 @@ def run(test, params, env):
try:
image_io.snapshot_del(blkdebug_cfg=blkdebug_cfg)
output = ""
except error.CmdError, err:
output = err.result_obj.stderr
except process.CmdError, err:
output = err.result.stderr
# Remove the snapshot and base image after a round of test
image_io.remove()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册