diff options
Diffstat (limited to 'yardstick/benchmark/runners/base.py')
-rwxr-xr-x | yardstick/benchmark/runners/base.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yardstick/benchmark/runners/base.py b/yardstick/benchmark/runners/base.py index cc8c93cb6..d443806a7 100755 --- a/yardstick/benchmark/runners/base.py +++ b/yardstick/benchmark/runners/base.py @@ -169,7 +169,6 @@ class Runner(object): Runner.release(runner) def __init__(self, config, queue): - self.context = {} self.config = config self.periodic_action_process = None self.result_queue = queue @@ -189,7 +188,8 @@ class Runner(object): log.debug("post-stop data: \n%s" % data) self.result_queue.put({'post-stop-action-data': data}) - def run(self, scenario_type, scenario_cfg): + def run(self, scenario_cfg, context_cfg): + scenario_type = scenario_cfg["type"] class_name = base_scenario.Scenario.get(scenario_type) path_split = class_name.split(".") module_path = ".".join(path_split[:-1]) @@ -228,7 +228,7 @@ class Runner(object): self.result_queue)) self.periodic_action_process.start() - self._run_benchmark(cls, "run", scenario_cfg) + self._run_benchmark(cls, "run", scenario_cfg, context_cfg) def join(self): self.process.join() |