summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxudan <xudan16@huawei.com>2019-03-05 03:47:26 -0500
committerxudan <xudan16@huawei.com>2019-03-05 03:50:05 -0500
commit80edaf3c201bec85fe8a403e03b68899c08df3bb (patch)
treefb7fe75ea39276d8894baa63df51dd36f7723f88
parent16bb5e7d7745aab049d1a6810cef1ee620afa9cc (diff)
Forwarding flavor parameters in stress testopnfv-8.0.0stable/hunter
JIRA: BOTTLENECK-248 Change-Id: Idb7c7f94341e948e6df1c8151937283b2a1d10a6 Signed-off-by: xudan <xudan16@huawei.com>
-rw-r--r--utils/infra_setup/runner/yardstick.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/infra_setup/runner/yardstick.py b/utils/infra_setup/runner/yardstick.py
index 562e918f..6071585c 100644
--- a/utils/infra_setup/runner/yardstick.py
+++ b/utils/infra_setup/runner/yardstick.py
@@ -46,9 +46,12 @@ def yardstick_command_parser(debug, cidr, outfile, parameter):
image_name = config.bottlenecks_config["yardstick_image_name"]
parameter["image_name"] = image_name
DEPLOY_SCENARIO = os.getenv("DEPLOY_SCENARIO")
+ RAM_NUM = os.getenv("RAM_NUM")
if DEPLOY_SCENARIO:
if "ovs" in DEPLOY_SCENARIO:
parameter["dpdk_enabled"] = True
+ if RAM_NUM:
+ parameter["ram_num"] = RAM_NUM
LOG.info(parameter)
if parameter is not None:
cmd += " --task-args " + '"' + str(parameter) + '"'