提交 78977d9a 编写于 作者: W Wei Jiangang 提交者: GitHub

Merge pull request #735 from autotest/rng_bat

rng_bat: Fix wrong doc and enhance error message
......@@ -30,7 +30,7 @@ def run(test, params, env):
:param dev_file: host random device name.
:param vm_pid: qemu process ID.
:return: False or True.
:return: Match objects or None.
"""
lsof_cmd = "lsof %s" % dev_file
output = process.system_output(lsof_cmd, ignore_status=True)
......@@ -62,7 +62,7 @@ def run(test, params, env):
error_context.context("Check '%s' used by qemu" % dev_file,
logging.info)
if not is_dev_used_by_qemu(dev_file, vm_pid):
msg = "Qemu not using host passthrough "
msg = "Qemu (pid=%d) not using host passthrough " % vm_pid
msg += "device '%s'" % dev_file
raise exceptions.TestFail(msg)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册