1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 02:41:11 +01:00

geekbench: fixing root check

- negating the check (error if *not* rooted)
- do not check for version 2 (results are extracted differently and that
  does not require root).
This commit is contained in:
Sergei Trofimov 2016-01-22 10:43:01 +00:00
parent 78d49ca8ae
commit 73ddc205fc

View File

@ -95,7 +95,7 @@ class Geekbench(AndroidUiAutoBenchmark):
self.run_timeout = 5 * 60 * self.times self.run_timeout = 5 * 60 * self.times
def initialize(self, context): def initialize(self, context):
if self.device.is_rooted: if self.version == '3' and not self.device.is_rooted:
raise WorkloadError('Geekbench workload only works on rooted devices.') raise WorkloadError('Geekbench workload only works on rooted devices.')
def init_resources(self, context): def init_resources(self, context):