diff options
author | Ace Lee <liyin11@huawei.com> | 2017-10-11 09:22:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-10-11 09:22:49 +0000 |
commit | 1ddcbed821e841c032aa2f1a4dfc3714716e83b8 (patch) | |
tree | cf7289cc7066a5777b79eb6e70ae498414110398 /utils/infra_setup | |
parent | ba35a9ec913aaba9594cc402632d6fb1bbbbf548 (diff) | |
parent | c0dc0572a4bf4bfc308b9d9ff5072468b9995d3c (diff) |
Merge "Bottlenecks testpmd scale-up testcase."
Diffstat (limited to 'utils/infra_setup')
-rw-r--r-- | utils/infra_setup/runner/docker_env.py | 3 | ||||
-rw-r--r-- | utils/infra_setup/runner/yardstick.py | 12 |
2 files changed, 13 insertions, 2 deletions
diff --git a/utils/infra_setup/runner/docker_env.py b/utils/infra_setup/runner/docker_env.py index 64d049ba..6e9c78a0 100644 --- a/utils/infra_setup/runner/docker_env.py +++ b/utils/infra_setup/runner/docker_env.py @@ -46,8 +46,7 @@ def env_yardstick(docker_name): yardstick_tag = os.getenv("Yardstick_TAG") if yardstick_tag is None: yardstick_tag = "danube.3.1" - env_docker = client.containers.run(image="opnfv/yardstick:%s" - % yardstick_tag, + env_docker = client.containers.run(image="yardstick_pmd", privileged=True, tty=True, detach=True, diff --git a/utils/infra_setup/runner/yardstick.py b/utils/infra_setup/runner/yardstick.py index 35b89ae8..559b9c10 100644 --- a/utils/infra_setup/runner/yardstick.py +++ b/utils/infra_setup/runner/yardstick.py @@ -24,6 +24,18 @@ headers = {"Content-Type": "application/json"} LOG = logger.Logger(__name__).getLogger() +def yardstick_command_parser(debug, cidr, outfile, parameter): + cmd = "yardstick" + if debug: + cmd += " -d" + cmd += " task start " + cmd += str(cidr) + cmd += " --output-file " + outfile + if parameter is not None: + cmd += " --task-args " + '"' + str(parameter) + '"' + return cmd + + def Get_Reply(test_config, task_id, time_test=1): reply_url = ("http://%s/yardstick/results?task_id=%s" % (test_config['yardstick_test_ip'], task_id)) |