diff options
author | qiujuan <juan_qiu@tongji.edu.cn> | 2017-05-25 13:18:28 +0800 |
---|---|---|
committer | Jing Lu <lvjing5@huawei.com> | 2017-07-25 06:10:56 +0000 |
commit | a0c9e3066046fc369870dbffe67a0613d661cf80 (patch) | |
tree | c3712ff54101f921a5abec530ac6838b1e3f5219 /yardstick/benchmark/scenarios/availability/scenario_general.py | |
parent | d29df23ae5057fe0ccded6f8d8f3e36a084a78b3 (diff) |
Add intermediate variable for HA test
JIRA: YARDSTICK-397
Change-Id: I3489893caa5b8194b63cb844325ec0b2c554aecc
Signed-off-by: qiujuan <juan_qiu@tongji.edu.cn>
Diffstat (limited to 'yardstick/benchmark/scenarios/availability/scenario_general.py')
-rw-r--r-- | yardstick/benchmark/scenarios/availability/scenario_general.py | 4 |
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']) |