mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-03-21 01:59:13 +00:00
geekbench: allow user defined run_timeout
Geek bench 4 runs for a much longer duration than 3. Allow the user to override the default value if they are using a particularly slow device.
This commit is contained in:
parent
725d894b9a
commit
071bf990be
@ -87,6 +87,8 @@ class Geekbench(AndroidUiAutoBenchmark):
|
|||||||
Parameter('times', kind=int, default=1,
|
Parameter('times', kind=int, default=1,
|
||||||
description=('Specfies the number of times the benchmark will be run in a "tight '
|
description=('Specfies the number of times the benchmark will be run in a "tight '
|
||||||
'loop", i.e. without performaing setup/teardown inbetween.')),
|
'loop", i.e. without performaing setup/teardown inbetween.')),
|
||||||
|
Parameter('run_timeout', kind=int, default=900,
|
||||||
|
description='Timeout, in seconds, for the script run time.'),
|
||||||
]
|
]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@ -101,7 +103,8 @@ class Geekbench(AndroidUiAutoBenchmark):
|
|||||||
super(Geekbench, self).__init__(device, **kwargs)
|
super(Geekbench, self).__init__(device, **kwargs)
|
||||||
self.uiauto_params['version'] = self.version
|
self.uiauto_params['version'] = self.version
|
||||||
self.uiauto_params['times'] = self.times
|
self.uiauto_params['times'] = self.times
|
||||||
self.run_timeout = 10 * 60 * self.times
|
if (self.times > 1):
|
||||||
|
self.run_timeout = 10 * 60 * self.times
|
||||||
self.exact_apk_version = self.version
|
self.exact_apk_version = self.version
|
||||||
|
|
||||||
def update_result(self, context):
|
def update_result(self, context):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user