mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-04-14 06:40:52 +01:00
commit
78d49ca8ae
@ -12,7 +12,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
# pylint: disable=attribute-defined-outside-init
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from time import sleep
|
from time import sleep
|
||||||
|
@ -125,7 +125,7 @@ class ApplaunchWorkload(Workload):
|
|||||||
def run(self, context):
|
def run(self, context):
|
||||||
self.device.execute('sh {}'.format(self.device_script_file), timeout=300, as_root=self.io_stress)
|
self.device.execute('sh {}'.format(self.device_script_file), timeout=300, as_root=self.io_stress)
|
||||||
|
|
||||||
def update_result(self, context):
|
def update_result(self, context): # pylint: disable=too-many-locals
|
||||||
result_files = ['time.result']
|
result_files = ['time.result']
|
||||||
result_files += ['{}.result'.format(sensor.label) for sensor in self.sensors]
|
result_files += ['{}.result'.format(sensor.label) for sensor in self.sensors]
|
||||||
metric_suffix = ''
|
metric_suffix = ''
|
||||||
|
@ -94,6 +94,10 @@ class Geekbench(AndroidUiAutoBenchmark):
|
|||||||
self.uiauto_params['times'] = self.times
|
self.uiauto_params['times'] = self.times
|
||||||
self.run_timeout = 5 * 60 * 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):
|
def init_resources(self, context):
|
||||||
self.apk_file = context.resolver.get(wlauto.common.android.resources.ApkFile(self), version=self.version)
|
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))
|
self.uiauto_file = context.resolver.get(wlauto.common.android.resources.JarFile(self))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user