From: chenjiankun Date: Tue, 13 Sep 2016 08:41:56 +0000 (+0000) Subject: Bugfix: reporting shows more than 4 days result X-Git-Tag: colorado.1.0~38^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?p=releng.git;a=commitdiff_plain;h=fa7a4dc69cfb0bbfd9db24ffd253b3832a4bbc59 Bugfix: reporting shows more than 4 days result JIRA: YARDSTICK-346 Change-Id: Ife5334f9c7d6a1546eee6995ce4b1b36d0f2c008 Signed-off-by: chenjiankun --- diff --git a/utils/test/reporting/yardstick/reporting-status.py b/utils/test/reporting/yardstick/reporting-status.py index d7a4e2986..57a95947b 100644 --- a/utils/test/reporting/yardstick/reporting-status.py +++ b/utils/test/reporting/yardstick/reporting-status.py @@ -38,6 +38,8 @@ for version in conf.versions: if not scenario_results.has_key(k): scenario_results[k] = [] scenario_results[k] += stable_result[k] + for k,v in scenario_results.items(): + scenario_results[k] = v[0:conf.LASTEST_TESTS] scenario_result_criteria = {} # From each scenarios get results list