Forwarding flavor parameters in stress test 74/67174/1 stable/hunter opnfv-8.0.0
authorxudan <xudan16@huawei.com>
Tue, 5 Mar 2019 08:47:26 +0000 (03:47 -0500)
committerxudan <xudan16@huawei.com>
Tue, 5 Mar 2019 08:50:05 +0000 (03:50 -0500)
JIRA: BOTTLENECK-248

Change-Id: Idb7c7f94341e948e6df1c8151937283b2a1d10a6
Signed-off-by: xudan <xudan16@huawei.com>
utils/infra_setup/runner/yardstick.py

index 562e918..6071585 100644 (file)
@@ -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) + '"'