mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-03 20:02:39 +01:00
wa/workloads: pep8 fixes
This commit is contained in:
@@ -24,6 +24,7 @@ from wa import ApkUiautoWorkload, Parameter
|
||||
from wa.framework.exception import ConfigError, WorkloadError
|
||||
from wa.utils.misc import capitalize
|
||||
|
||||
|
||||
class Geekbench(ApkUiautoWorkload):
|
||||
|
||||
name = 'geekbench'
|
||||
@@ -168,7 +169,7 @@ class Geekbench(ApkUiautoWorkload):
|
||||
for section in data['sections']:
|
||||
context.add_metric(namemify(section['name'] + '_score', i), section['score'])
|
||||
context.add_metric(namemify(section['name'] + '_multicore_score', i),
|
||||
section['multicore_score'])
|
||||
section['multicore_score'])
|
||||
|
||||
def update_result_4(self, context):
|
||||
outfile_glob = self.target.path.join(self.target.package_data_directory, self.package, 'files', '*gb*')
|
||||
@@ -196,6 +197,7 @@ class Geekbench(ApkUiautoWorkload):
|
||||
|
||||
update_result_5 = update_result_4
|
||||
|
||||
|
||||
class GBWorkload(object):
|
||||
"""
|
||||
Geekbench workload (not to be confused with WA's workloads). This is a single test run by
|
||||
@@ -403,6 +405,7 @@ class GeekbenchCorproate(Geekbench):
|
||||
override=True)
|
||||
]
|
||||
|
||||
|
||||
def namemify(basename, i):
|
||||
return basename + (' {}'.format(i) if i else '')
|
||||
|
||||
|
Reference in New Issue
Block a user