提交 87329a8e 编写于 作者: F Feng Yang 提交者: Lucas Meneghel Rodrigues

virt: Make env_setup works when os_type is windows

Changes from v1:
Delete client_path = "D:\\netperf.exe"
Changes from v2:
Make windows could be client or host.
Add host sub parameters.
Signed-off-by: NFeng Yang <fyang@redhat.com>
上级 43214094
......@@ -194,10 +194,6 @@ def run_netperf(test, params, env):
session2.close()
_pin_vm_threads(vm2, numa_node)
shell_port = int(params["shell_port"])
password = params["password"]
username = params["username"]
error.context("Prepare env of server/client/host", logging.info)
prepare_list = set([server_ctl, client, host])
tag_dict = {server_ctl: "server", client: "client", host: "host"}
......@@ -205,6 +201,9 @@ def run_netperf(test, params, env):
for i in prepare_list:
params_tmp = params.object_params(tag_dict[i])
if params_tmp.get("os_type") == "linux":
shell_port = int(params_tmp["shell_port"])
password = params_tmp["password"]
username = params_tmp["username"]
env_setup(i, ip_dict[i], username, shell_port, password)
error.context("Start netperf testing", logging.info)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册