mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 10:11:17 +00:00
Revert "workloads: Fixed versions to be backward compatible"
This reverts commit 8608c3b747fb544f95c3eefa45191b47efe53994.
This commit is contained in:
parent
486ade6499
commit
1bbd3ef87a
@ -48,7 +48,7 @@ class Antutu(AndroidUiAutoBenchmark):
|
||||
activity = ".ABenchMarkStart"
|
||||
summary_metrics = ['score', 'Overall_Score']
|
||||
|
||||
valid_versions = ['3.3.2', '4.0.3', '5.3', '5.3.0', '6.0.1']
|
||||
valid_versions = ['3.3.2', '4.0.3', '5.3', '6.0.1']
|
||||
|
||||
device_prefs_directory = '/data/data/com.antutu.ABenchMark/shared_prefs'
|
||||
device_prefs_file = '/'.join([device_prefs_directory, 'com.antutu.ABenchMark_preferences.xml'])
|
||||
@ -70,8 +70,6 @@ class Antutu(AndroidUiAutoBenchmark):
|
||||
|
||||
def __init__(self, device, **kwargs): # pylint: disable=W0613
|
||||
super(Antutu, self).__init__(device, **kwargs)
|
||||
if self.version == '5.3.0':
|
||||
self.version = '5.3'
|
||||
self.run_timeout = 10 * 60 * self.times
|
||||
self.uiauto_params['version'] = self.version
|
||||
self.uiauto_params['times'] = self.times
|
||||
|
@ -73,8 +73,7 @@ class Geekbench(AndroidUiAutoBenchmark):
|
||||
replace_regex = re.compile(r'<[^>]*>')
|
||||
|
||||
parameters = [
|
||||
Parameter('version', default=sorted(versions.keys())[-1], allowed_values=sorted(versions.keys() +
|
||||
['2', '3']),
|
||||
Parameter('version', default=sorted(versions.keys())[-1], allowed_values=sorted(versions.keys()),
|
||||
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 '
|
||||
@ -91,10 +90,6 @@ 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
|
||||
|
@ -73,7 +73,7 @@ class Glb(AndroidUiAutoBenchmark):
|
||||
regex = re.compile(r'GLBenchmark (metric|FPS): (.*)')
|
||||
|
||||
parameters = [
|
||||
Parameter('version', default='2.7', allowed_values=['2.7', '2.7.0', '2.5', '2.5.1'],
|
||||
Parameter('version', default='2.7', allowed_values=['2.7', '2.5'],
|
||||
description=('Specifies which version of the benchmark to run (different versions '
|
||||
'support different use cases).')),
|
||||
Parameter('use_case', default=None,
|
||||
@ -111,10 +111,6 @@ class Glb(AndroidUiAutoBenchmark):
|
||||
|
||||
def __init__(self, device, **kwargs):
|
||||
super(Glb, self).__init__(device, **kwargs)
|
||||
if self.version == '2.7.0':
|
||||
self.version = '2.7'
|
||||
elif self.version == '2.5.1':
|
||||
self.version = '2.5'
|
||||
self.uiauto_params['version'] = self.version
|
||||
|
||||
if self.use_case is None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user