mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-21 12:28:44 +00:00
iozone: Rewrite parse_metrics() function
When users specify tests, the parse_metrics() function doesn't capture the last report name and its results during the parsing process. Fix the parse_metrics() function to make sure the data for all reports are captured. Signed-off-by: Lisa Nguyen <lisa.nguyen@linaro.org>
This commit is contained in:
parent
361f1a0f0c
commit
812bbffab1
@ -230,7 +230,7 @@ class Iozone(Workload):
|
|||||||
|
|
||||||
# break list of results into smaller groups based on
|
# break list of results into smaller groups based on
|
||||||
# I/O operation
|
# I/O operation
|
||||||
def parse_metrics(self, context, plist):
|
def parse_metrics(self, context, plist):
|
||||||
subvalue_list = []
|
subvalue_list = []
|
||||||
value_list = []
|
value_list = []
|
||||||
for values in plist:
|
for values in plist:
|
||||||
@ -240,6 +240,9 @@ class Iozone(Workload):
|
|||||||
value_list.append(subvalue_list)
|
value_list.append(subvalue_list)
|
||||||
subvalue_list = []
|
subvalue_list = []
|
||||||
|
|
||||||
|
if subvalue_list:
|
||||||
|
value_list.append(subvalue_list)
|
||||||
|
|
||||||
for reports in value_list:
|
for reports in value_list:
|
||||||
# grab report name and convert it to a string
|
# grab report name and convert it to a string
|
||||||
report_name = reports[0]
|
report_name = reports[0]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user