1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-31 10:11:17 +00:00

geekbench: Added check whether device is rooted

This commit is contained in:
Sebastian Goscik 2016-01-22 09:39:49 +00:00
parent 798a7befb8
commit f4c89644ff

View File

@ -94,6 +94,10 @@ class Geekbench(AndroidUiAutoBenchmark):
self.uiauto_params['times'] = self.times
self.run_timeout = 5 * 60 * self.times
def initialize(self, context):
if self.device.is_rooted:
raise WorkloadError('Geekbench workload only works on rooted devices.')
def init_resources(self, context):
self.apk_file = context.resolver.get(wlauto.common.android.resources.ApkFile(self), version=self.version)
self.uiauto_file = context.resolver.get(wlauto.common.android.resources.JarFile(self))