diff options
author | rexlee8776 <limingjiang@huawei.com> | 2017-05-03 07:58:12 +0000 |
---|---|---|
committer | rexlee8776 <limingjiang@huawei.com> | 2017-05-03 14:37:16 +0000 |
commit | 71bbbdb18b5f8621b8b4ed9aa0e4fcc1e8882085 (patch) | |
tree | 53d762572b993cb251da7ef3ed596f3885447389 /yardstick/benchmark/scenarios/availability/scenario_general.py | |
parent | ea12d172d6ce24e8a21f0509e8fb286bc9fcbf14 (diff) |
fix ha issue when run tc050~tc054 in ci
JIRA: YARDSTICK-634
Change-Id: I46681c7e8afe391eef9c5309470028167e911950
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
Diffstat (limited to 'yardstick/benchmark/scenarios/availability/scenario_general.py')
-rw-r--r-- | yardstick/benchmark/scenarios/availability/scenario_general.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/yardstick/benchmark/scenarios/availability/scenario_general.py b/yardstick/benchmark/scenarios/availability/scenario_general.py index a950ef933..689d33a34 100644 --- a/yardstick/benchmark/scenarios/availability/scenario_general.py +++ b/yardstick/benchmark/scenarios/availability/scenario_general.py @@ -29,7 +29,7 @@ class ScenarioGeneral(base.Scenario): def setup(self): self.director = Director(self.scenario_cfg, self.context_cfg) - def run(self, args): + def run(self, result): steps = self.scenario_cfg["options"]["steps"] orderedSteps = sorted(steps, key=lambda x: x['index']) for step in orderedSteps: @@ -55,12 +55,14 @@ class ScenarioGeneral(base.Scenario): self.director.stopMonitors() if self.director.verify(): - LOG.debug( - "\033[92m congratulations, " - "the test cases scenario is pass! \033[0m") + result['sla_pass'] = 1 + LOG.info( + "\033[92m Congratulations, " + "the HA test case PASS! \033[0m") else: - LOG.debug( - "\033[91m aoh,the test cases scenario failed," + result['sla_pass'] = 0 + LOG.info( + "\033[91m Aoh, the HA test case FAIL," "please check the detail debug information! \033[0m") def teardown(self): |