1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-10-29 22:24:51 +00:00

wa/workloads: Update to consistently use timeout parameter

This commit is contained in:
Marc Bonnici
2018-05-14 11:54:44 +01:00
committed by setrofim
parent a23c896647
commit 6754ecd6d7
2 changed files with 6 additions and 5 deletions

View File

@@ -81,7 +81,7 @@ class Jankbench(ApkWorkload):
This defaults to ``True`` for rooted devices and ``False`` otherwise.
'''),
Parameter('run_timeout', kind=int, default=10 * 60,
Parameter('timeout', kind=int, default=10 * 60, aliases=['run_timeout'],
description="""
Time out for workload execution. The workload will be killed if it hasn't completed
within this period.
@@ -102,13 +102,13 @@ class Jankbench(ApkWorkload):
self.monitor.start()
def run(self, context):
result = self.target.execute(self.command, timeout=self.run_timeout)
result = self.target.execute(self.command, timeout=self.timeout)
if 'FAILURE' in result:
raise WorkloadError(result)
else:
self.logger.debug(result)
self.target.sleep(DELAY)
self.monitor.wait_for_run_end(self.run_timeout)
self.monitor.wait_for_run_end(self.timeout)
def extract_results(self, context):
self.monitor.stop()