Fix parsing possibly corrupted files and make sure devices are aways sorted
This commit is contained in:
@@ -164,7 +164,7 @@ class LatestResultVisitor(ResultVisitor):
|
||||
for scene_name in stats:
|
||||
stat = stats[scene_name]
|
||||
# Ignore benchmark results which crashed or aborted.
|
||||
if stat['result'] != 'OK':
|
||||
if "result" not in stat or stat['result'] != 'OK':
|
||||
continue
|
||||
# Ignore benchmark results which ar eolder than existing ones.
|
||||
if scene_name in device and \
|
||||
@@ -197,7 +197,8 @@ class LatestResultVisitor(ResultVisitor):
|
||||
# Gather datasets in format of charts.
|
||||
datasets = []
|
||||
device_index = 0
|
||||
for device_name, stats in self.devices_.items():
|
||||
for device_name in sorted(self.devices_.keys()):
|
||||
stats = self.devices_[device_name]
|
||||
data = []
|
||||
for scene_name in all_scenes:
|
||||
if scene_name not in stats:
|
||||
|
Reference in New Issue
Block a user