提交 b89080c1 编写于 作者: X Xu Han

timedrift: Fix the CmdError of restore_cpu_affinity()

When restoring the configurations of cpu affinity, some threads
would be no long existed, so need to ignore the errors emitted
by this operation.
Signed-off-by: NXu Han <xuhan@redhat.com>
上级 413c1ad6
...@@ -59,7 +59,8 @@ def run(test, params, env): ...@@ -59,7 +59,8 @@ def run(test, params, env):
:param prev_masks: A dict containing TIDs as keys and masks as values. :param prev_masks: A dict containing TIDs as keys and masks as values.
""" """
for tid, mask in prev_masks.items(): for tid, mask in prev_masks.items():
process.system("taskset -p %s %s" % (mask, tid), verbose=False) process.system("taskset -p %s %s" % (mask, tid), verbose=False,
ignore_status=True)
vm = env.get_vm(params["main_vm"]) vm = env.get_vm(params["main_vm"])
vm.verify_alive() vm.verify_alive()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册