From 083efad304a64217426b827a666ae828e7b4d0e7 Mon Sep 17 00:00:00 2001 From: xudan Date: Wed, 26 Dec 2018 02:57:47 -0500 Subject: Add a patch to make ram_num configurable for DPDK 1. add a patch to change bottlenecks source code within git repo /home/opnfv/bottlenecks 2. add a script to run the patch within Bottlenecks git repo 3. copy the edited file yardstick.py to /usr/local/lib 4. change the results dir from /home/opnfv/bottlenecks/results to /home/opnfv/results which is out of Bottlenecks git repo JIRA: BOTTLENECKS-248 Change-Id: I86ff51ec41caf79fb16e0985db8eefa679153102 Signed-off-by: xudan --- dovetail/run.py | 3 +++ dovetail/test_runner.py | 1 + 2 files changed, 4 insertions(+) (limited to 'dovetail') diff --git a/dovetail/run.py b/dovetail/run.py index 8d4b7f8d..ac0b697b 100755 --- a/dovetail/run.py +++ b/dovetail/run.py @@ -184,6 +184,9 @@ def update_deploy_scenario(logger, **kwargs): if 'deploy_scenario' in kwargs and kwargs['deploy_scenario'] is not None: os.environ['DEPLOY_SCENARIO'] = kwargs['deploy_scenario'] logger.info("DEPLOY_SCENARIO : %s", os.environ['DEPLOY_SCENARIO']) + if 'ram_num' in kwargs and kwargs['ram_num'] is not None: + os.environ['RAM_NUM'] = kwargs['ram_num'] + logger.info("RAM_NUM : {}".format(os.environ['RAM_NUM'])) def check_hosts_file(logger): diff --git a/dovetail/test_runner.py b/dovetail/test_runner.py index 9b5114f8..a783daae 100644 --- a/dovetail/test_runner.py +++ b/dovetail/test_runner.py @@ -145,6 +145,7 @@ class DockerRunner(object): config_item['os_insecure'] = os.getenv("OS_INSECURE") if 'DEPLOY_SCENARIO' in os.environ: config_item['deploy_scenario'] = os.environ['DEPLOY_SCENARIO'] + config_item['ram_num'] = os.getenv('RAM_NUM') config_item['dovetail_home'] = os.getenv("DOVETAIL_HOME") return config_item -- cgit 1.2.3-korg