未验证 提交 9f781723 编写于 作者: X Xu Han 提交者: GitHub

Merge pull request #1422 from hereischen/python3-fix

Python 3: fix a process issue
......@@ -54,9 +54,10 @@ def run(test, params, env):
assign_vm_into_cgroup(vm, cgroup, 0)
vhost_pids = process.system_output("pidof vhost-%s" % vm.get_pid(),
shell=True)
shell=True,
ignore_status=True).decode()
if not vhost_pids:
test.error("Vhost process not exise")
test.error("Vhost process does not exist")
logging.info("Vhost have started with pid %s" % vhost_pids)
for vhost_pid in vhost_pids.strip().split():
cgroup.set_cgroup(int(vhost_pid))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册