summaryrefslogtreecommitdiffstats
path: root/utils/test/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
commit19630581f1ac53918aa5cc15faca8b2f0d53c00e (patch)
tree5a33a41af4dd561a06dc9804570f29dde7c82b75 /utils/test/reporting/yardstick/scenarioResult.py
parentc5a5ac59a33dacaaf47b210aee42c75f4459b273 (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 'utils/test/reporting/yardstick/scenarioResult.py')
-rw-r--r--utils/test/reporting/yardstick/scenarioResult.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/utils/test/reporting/yardstick/scenarioResult.py b/utils/test/reporting/yardstick/scenarioResult.py
index 743346adc..61ffb2ce7 100644
--- a/utils/test/reporting/yardstick/scenarioResult.py
+++ b/utils/test/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