未验证 提交 732448ef 编写于 作者: Q Qianqian Zhu 提交者: GitHub

Merge pull request #1563 from xiywang/boot_with_df_vec

boot_with_different_vectors: cannot find a str in session.cmd_output
......@@ -79,10 +79,11 @@ def run(test, params, env):
error_context.context("Check the cpu interrupt of virito",
logging.info)
cmd = "cat /proc/interrupts |grep virtio"
output = session.cmd_output(cmd)
output = session.cmd_output(cmd).strip()
vectors = int(vectors)
if vectors == 0 or vectors == 1:
if "IO-APIC-fasteoi" not in output:
if not (re.findall("IO-APIC", output) and
re.findall("fasteoi", output)):
msg = "Could not find IO-APIC-fasteoi interrupt"
msg += " when vectors = %d" % vectors
test.fail(msg)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册