1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-18 12:06:08 +00:00

commands/templates: Update to add optional setup_rerun method

This commit is contained in:
Marc Bonnici 2018-06-20 14:51:40 +01:00 committed by setrofim
parent e672fbed32
commit d3cb350461
3 changed files with 18 additions and 0 deletions

View File

@ -40,6 +40,12 @@ class ${class_name}(ApkWorkload):
super(${class_name}, self).setup(context)
# Perform any necessary setup before starting the application
def setup_rerun(self, context):
super(${class_name}, self).setup(context)
# If the workloads has the `requires_rerun` attribute set to `True` this
# method may be used to perform any necessary setup for the rerun of the
# application.
def extract_results(self, context):
super(${class_name}, self).extract_results(context)
# Extract results on the target

View File

@ -40,6 +40,12 @@ class ${class_name}(ApkReventWorkload):
super(${class_name}, self).setup(context)
# Perform any necessary setup before starting the UI automation
def setup_rerun(self, context):
super(${class_name}, self).setup(context)
# If the workloads has the `requires_rerun` attribute set to `True` this
# method may be used to perform any necessary setup for the rerun of the
# application.
def extract_results(self, context):
super(${class_name}, self).extract_results(context)
# Extract results on the target

View File

@ -40,6 +40,12 @@ class ${class_name}(ApkUiautoWorkload):
super(${class_name}, self).setup(context)
# Perform any necessary setup before starting the UI automation
def setup_rerun(self, context):
super(${class_name}, self).setup(context)
# If the workloads has the `requires_rerun` attribute set to `True` this
# method may be used to perform any necessary setup for the rerun of the
# application.
def extract_results(self, context):
super(${class_name}, self).extract_results(context)
# Extract results on the target