1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-03-14 06:38:36 +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:
James Hartley 2016-11-17 18:06:58 +00:00
parent 725d894b9a
commit 071bf990be

View File

@ -87,6 +87,8 @@ class Geekbench(AndroidUiAutoBenchmark):
Parameter('times', kind=int, default=1,
description=('Specfies the number of times the benchmark will be run in a "tight '
'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
@ -101,7 +103,8 @@ class Geekbench(AndroidUiAutoBenchmark):
super(Geekbench, self).__init__(device, **kwargs)
self.uiauto_params['version'] = self.version
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
def update_result(self, context):