aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/benchmark/scenarios/availability/scenario_general.py
diff options
context:
space:
mode:
authorRex Lee <limingjiang@huawei.com>2017-07-26 00:41:29 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-07-26 00:41:29 +0000
commitac4f5055109dff03f9f1bf6ab42a27cd78446d92 (patch)
tree4ac62bfe094f44a12e6163d6a3593af289a2e70f /yardstick/benchmark/scenarios/availability/scenario_general.py
parent3a87a3262b5aefb7231f90a3b3808b947353eca5 (diff)
parenta0c9e3066046fc369870dbffe67a0613d661cf80 (diff)
Merge "Add intermediate variable for HA test"
Diffstat (limited to 'yardstick/benchmark/scenarios/availability/scenario_general.py')
-rw-r--r--yardstick/benchmark/scenarios/availability/scenario_general.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/yardstick/benchmark/scenarios/availability/scenario_general.py b/yardstick/benchmark/scenarios/availability/scenario_general.py
index 28bec8aff..17ad79f29 100644
--- a/yardstick/benchmark/scenarios/availability/scenario_general.py
+++ b/yardstick/benchmark/scenarios/availability/scenario_general.py
@@ -25,6 +25,7 @@ class ScenarioGeneral(base.Scenario):
"scenario_cfg:%s context_cfg:%s", scenario_cfg, context_cfg)
self.scenario_cfg = scenario_cfg
self.context_cfg = context_cfg
+ self.intermediate_variables = {}
def setup(self):
self.director = Director(self.scenario_cfg, self.context_cfg)
@@ -38,7 +39,8 @@ class ScenarioGeneral(base.Scenario):
orderedSteps.index(step) + 1)
try:
actionPlayer = self.director.createActionPlayer(
- step['actionType'], step['actionKey'])
+ step['actionType'], step['actionKey'],
+ self.intermediate_variables)
actionPlayer.action()
actionRollbacker = self.director.createActionRollbacker(
step['actionType'], step['actionKey'])