提交 e31c8466 编写于 作者: X Xiyue Wang

vhost_with_cgroup: Modify the method to get vhost pid

Signed-off-by: NXiyue Wang <xiywang@redhat.com>
上级 b76ee518
......@@ -53,9 +53,7 @@ def run(test, params, env):
cgroup.set_property("cpu.cfs_period_us", 100000, 0)
assign_vm_into_cgroup(vm, cgroup, 0)
vhost_pids = process.system_output("pidof vhost-%s" % vm.get_pid(),
shell=True,
ignore_status=True).decode()
vhost_pids = process.system_output("pgrep vhost", shell=True).decode()
if not vhost_pids:
test.error("Vhost process does not exist")
logging.info("Vhost have started with pid %s" % vhost_pids)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册