diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2016-10-12 16:25:00 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-10-12 16:25:00 +0000 |
commit | aa53db68781549f0b4d84cf7b51b55968c6f6505 (patch) | |
tree | 157747da198e7a4851882adfbc0260a882787af2 /utils/test/reporting/yardstick/scenarioResult.py | |
parent | f9a4eeb385d42c60af5b68624da8ad2a46fbad3c (diff) | |
parent | 9ee2d15b5f83aae45686b52ef386c7cd9afff428 (diff) |
Merge "Add d3 graph presentation to yardstick reporting"
Diffstat (limited to 'utils/test/reporting/yardstick/scenarioResult.py')
-rw-r--r-- | utils/test/reporting/yardstick/scenarioResult.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/test/reporting/yardstick/scenarioResult.py b/utils/test/reporting/yardstick/scenarioResult.py index 61ffb2ce7..1f7eb2b24 100644 --- a/utils/test/reporting/yardstick/scenarioResult.py +++ b/utils/test/reporting/yardstick/scenarioResult.py @@ -9,10 +9,12 @@ class ScenarioResult(object): - def __init__(self, status, four_days_score='', ten_days_score=''): + def __init__(self, status, four_days_score='', ten_days_score='', + score_percent=0.0): self.status = status self.four_days_score = four_days_score self.ten_days_score = ten_days_score + self.score_percent = score_percent def getStatus(self): return self.status @@ -22,3 +24,6 @@ class ScenarioResult(object): def getFourDaysScore(self): return self.four_days_score + + def getScorePercent(self): + return self.score_percent |