diff options
author | 2017-09-20 09:06:34 +0800 | |
---|---|---|
committer | 2017-10-10 01:26:48 +0000 | |
commit | c0dc0572a4bf4bfc308b9d9ff5072468b9995d3c (patch) | |
tree | d88c1db7869ac3041d9f712c6837ab2d27c99c9c /utils/infra_setup/runner/yardstick.py | |
parent | ad12c5707ac1191063af5cd33d54dd30ff649787 (diff) |
Bottlenecks testpmd scale-up testcase.
JIRA: BOTTLENECK-205
This is the script of testpmd scale-up feature testcase.
we will debug the dashboard.
Change-Id: I4a6de0e7e1ea7c04639ece78a7b11b75128d8d2f
Signed-off-by: liyin <liyin11@huawei.com>
Diffstat (limited to 'utils/infra_setup/runner/yardstick.py')
-rw-r--r-- | utils/infra_setup/runner/yardstick.py | 12 |
1 files changed, 12 insertions, 0 deletions
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)) |