未验证 提交 8dea3ad9 编写于 作者: Q Qianqian Zhu 提交者: GitHub

Merge pull request #1544 from sitoliu/str-byte

mutl_vms_nics: fix TypeError for python3
......@@ -147,14 +147,14 @@ def run(test, params, env):
flood_minutes = float(params["flood_minutes"])
error_context.context("Check irqbalance service status", logging.info)
o = process.system_output(check_irqbalance_cmd, ignore_status=True,
shell=True)
shell=True).decode()
check_stop_irqbalance = False
if re.findall(status_irqbalance, o):
logging.debug("stop irqbalance")
process.run(stop_irqbalance_cmd, shell=True)
check_stop_irqbalance = True
o = process.system_output(check_irqbalance_cmd, ignore_status=True,
shell=True)
shell=True).decode()
if re.findall(status_irqbalance, o):
test.error("Can not stop irqbalance")
thread_list = []
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册