提交 6c952a76 编写于 作者: L Lucas Meneghel Rodrigues

virttest.utils_test: Move pin_vm_threads to utils_test.qemu

I have noticed this function was QEMU specific only
afterwards.
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 78a07cd7
......@@ -100,7 +100,7 @@ def run_netperf(test, params, env):
if node:
if not isinstance(node, utils_misc.NumaNode):
node = utils_misc.NumaNode(int(node))
utils_test.pin_vm_threads(vm, node)
utils_test.qemu.pin_vm_threads(vm, node)
return node
......
......@@ -45,7 +45,7 @@ def run_ntttcp(test, params, env):
if params.get('numa_node'):
numa_node = int(params.get('numa_node'))
node = utils_misc.NumaNode(numa_node)
utils_test.pin_vm_threads(vm_sender, node)
utils_test.qemu.pin_vm_threads(vm_sender, node)
if not receiver_addr:
vm_receiver = env.get_vm("vm2")
......@@ -58,7 +58,7 @@ def run_ntttcp(test, params, env):
raise error.TestError("Can't get receiver(%s) ip address" %
vm_sender.name)
if params.get('numa_node'):
utils_test.pin_vm_threads(vm_receiver, node)
utils_test.qemu.pin_vm_threads(vm_receiver, node)
finally:
if sess:
sess.close()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册