summaryrefslogtreecommitdiffstats
path: root/reporting/yardstick/scenarioResult.py
diff options
context:
space:
mode:
authorchenjiankun <chenjiankun1@huawei.com>2016-09-19 00:33:27 +0000
committerchenjiankun <chenjiankun1@huawei.com>2016-09-19 02:48:27 +0000
commita98dc96977e97b3a0a2ac85ec808559849391672 (patch)
tree4261f5f167dc064aa3d2b0ccf64ad3b5fd427dcd /reporting/yardstick/scenarioResult.py
parentcbf4243f895f01d2800b5aeb93358521c1f7de49 (diff)
Change display way of reporting status, add last ten days score
JIRA: YARDSTICK-350 Change-Id: Iea1d8a30cf3464c8b9a0b8b6ac2e0ce41adea00d Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Diffstat (limited to 'reporting/yardstick/scenarioResult.py')
-rw-r--r--reporting/yardstick/scenarioResult.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/reporting/yardstick/scenarioResult.py b/reporting/yardstick/scenarioResult.py
index 743346a..61ffb2c 100644
--- a/reporting/yardstick/scenarioResult.py
+++ b/reporting/yardstick/scenarioResult.py
@@ -9,12 +9,16 @@
class ScenarioResult(object):
- def __init__(self, status, score=0):
+ def __init__(self, status, four_days_score='', ten_days_score=''):
self.status = status
- self.score = score
+ self.four_days_score = four_days_score
+ self.ten_days_score = ten_days_score
def getStatus(self):
return self.status
- def getScore(self):
- return self.score
+ def getTenDaysScore(self):
+ return self.ten_days_score
+
+ def getFourDaysScore(self):
+ return self.four_days_score