summaryrefslogtreecommitdiffstats
path: root/reporting
diff options
context:
space:
mode:
authorchenjiankun <chenjiankun1@huawei.com>2017-10-12 02:48:00 +0000
committerchenjiankun <chenjiankun1@huawei.com>2017-10-12 02:52:46 +0000
commit57de16db5b3c02db535871deac604058e0cddbc2 (patch)
tree39bacaf13c0a62b8c13e04cff886ebd92d8d7e05 /reporting
parent6f88ed7e904a8ec57a448c460493e7d102007480 (diff)
bugfix: trend graph not show in fuel x86 and aarch64
The trend tool will read installer field in scenario_history.txt But now this field is fuel not fuel@x86 or fuel@aarch64. So I change fuel -> fuel@x86 & fuel@aarch64. Change-Id: I8e97e57febd559f65be559b16bceee5cf8268926 Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Diffstat (limited to 'reporting')
-rw-r--r--reporting/reporting/yardstick/reporting-status.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/reporting/reporting/yardstick/reporting-status.py b/reporting/reporting/yardstick/reporting-status.py
index 77e2604..10cacf0 100644
--- a/reporting/reporting/yardstick/reporting-status.py
+++ b/reporting/reporting/yardstick/reporting-status.py
@@ -39,7 +39,12 @@ def get_scenario_data(version, installer):
return scenarios
-def write_history_data(version, scenario, installer, ten_score, percent):
+def write_history_data(version,
+ scenario,
+ installer,
+ archi,
+ ten_score,
+ percent):
# Save daily results in a file
history_file = './display/{}/yardstick/scenario_history.txt'.format(
version)
@@ -49,6 +54,8 @@ def write_history_data(version, scenario, installer, ten_score, percent):
f.write('date,scenario,installer,details,score\n')
date = datetime.datetime.now().strftime("%Y-%m-%d %H:%M")
+ if installer == 'fuel':
+ installer = '{}@{}'.format(installer, archi)
with open(history_file, "a") as f:
info = '{},{},{},{},{}\n'.format(date,
scenario,
@@ -121,7 +128,12 @@ def generate_reporting_page(version, installer, archi, scenarios, period):
version,
scenario)
last_score, ten_score, percent, status = do_statistic(data)
- write_history_data(version, scenario, installer, ten_score, percent)
+ write_history_data(version,
+ scenario,
+ installer,
+ archi,
+ ten_score,
+ percent)
scenario_data[scenario] = ScenarioResult(status,
last_score,
ten_score,