mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 10:11:17 +00:00
geekbench: Error early if target isn't rooted
This commit is contained in:
parent
84404da471
commit
e4965096e6
@ -112,6 +112,12 @@ class Geekbench(ApkUiautoWorkload):
|
|||||||
self.gui.uiauto_params['times'] = self.times
|
self.gui.uiauto_params['times'] = self.times
|
||||||
self.gui.uiauto_params['is_corporate'] = self.is_corporate
|
self.gui.uiauto_params['is_corporate'] = self.is_corporate
|
||||||
|
|
||||||
|
def initialize(self, context):
|
||||||
|
super(Geekbench, self).initialize(context)
|
||||||
|
if not self.target.is_rooted:
|
||||||
|
raise WorkloadError(
|
||||||
|
'Geekbench workload requires root to collect results')
|
||||||
|
|
||||||
def setup(self, context):
|
def setup(self, context):
|
||||||
super(Geekbench, self).setup(context)
|
super(Geekbench, self).setup(context)
|
||||||
self.run_timeout = self.timeout * self.times
|
self.run_timeout = self.timeout * self.times
|
||||||
|
Loading…
x
Reference in New Issue
Block a user