mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-10-29 22:24:51 +00:00
workloads: Fixed versions to be backward compatible
In a recent commit workload versions were changed to match their APK versions. This commit adds the old versions to the allowed versions and automatically maps them onto the new values.
This commit is contained in:
@@ -73,7 +73,8 @@ class Geekbench(AndroidUiAutoBenchmark):
|
||||
replace_regex = re.compile(r'<[^>]*>')
|
||||
|
||||
parameters = [
|
||||
Parameter('version', default=sorted(versions.keys())[-1], allowed_values=sorted(versions.keys()),
|
||||
Parameter('version', default=sorted(versions.keys())[-1], allowed_values=sorted(versions.keys() +
|
||||
['2', '3']),
|
||||
description='Specifies which version of the workload should be run.'),
|
||||
Parameter('times', kind=int, default=1,
|
||||
description=('Specfies the number of times the benchmark will be run in a "tight '
|
||||
@@ -90,6 +91,10 @@ class Geekbench(AndroidUiAutoBenchmark):
|
||||
|
||||
def __init__(self, device, **kwargs):
|
||||
super(Geekbench, self).__init__(device, **kwargs)
|
||||
if self.version == '3':
|
||||
self.version = '3.0.0'
|
||||
elif self.version == '2':
|
||||
self.version = '2.2.7'
|
||||
self.uiauto_params['version'] = self.version
|
||||
self.uiauto_params['times'] = self.times
|
||||
self.run_timeout = 5 * 60 * self.times
|
||||
|
||||
Reference in New Issue
Block a user