From 87ba51757c890a9da229acc17850c4a7123a0175 Mon Sep 17 00:00:00 2001 From: Morgan Richomme Date: Mon, 6 Mar 2017 14:44:47 +0100 Subject: bug fix: last 4 run reporting for storperf - bug fix: copy/paste of yardstick code but list of results is not sorted by default, taking the last 4 array items lead to random results on the 4 last run sort results before taking the last 4 results to establish last 4 run criteria - enhancement: add link to last CI run in the reporting page - fix trend line bug Change-Id: Ice16832a81cb65503a63b16321a2be92a427d279 Signed-off-by: Morgan Richomme --- reporting/utils/scenarioResult.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'reporting/utils') diff --git a/reporting/utils/scenarioResult.py b/reporting/utils/scenarioResult.py index 1f7eb2b..6029d7f 100644 --- a/reporting/utils/scenarioResult.py +++ b/reporting/utils/scenarioResult.py @@ -10,11 +10,12 @@ class ScenarioResult(object): def __init__(self, status, four_days_score='', ten_days_score='', - score_percent=0.0): + score_percent=0.0, last_url=''): self.status = status self.four_days_score = four_days_score self.ten_days_score = ten_days_score self.score_percent = score_percent + self.last_url = last_url def getStatus(self): return self.status @@ -27,3 +28,6 @@ class ScenarioResult(object): def getScorePercent(self): return self.score_percent + + def getLastUrl(self): + return self.last_url -- cgit