1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-03 03:42:35 +01:00

New target description + moving target stuff under "framework"

Changing the way target descriptions work from a static mapping to
something that is dynamically generated and is extensible via plugins.
Also moving core target implementation stuff under "framework".
This commit is contained in:
Sergei Trofimov
2017-03-06 11:10:25 +00:00
parent 18d001fd76
commit 42539bbe0d
43 changed files with 6229 additions and 2586 deletions

View File

@@ -32,9 +32,10 @@ class Workload(TargetedPlugin):
def init_resources(self, context):
"""
This method may be used to perform early resource discovery and initialization. This is invoked
during the initial loading stage and before the device is ready, so cannot be used for any
device-dependent initialization. This method is invoked before the workload instance is
This method may be used to perform early resource discovery and
initialization. This is invoked during the initial loading stage and
before the device is ready, so cannot be used for any device-dependent
initialization. This method is invoked before the workload instance is
validated.
"""
@@ -59,7 +60,10 @@ class Workload(TargetedPlugin):
pass
def run(self, context):
"""Execute the workload. This is the method that performs the actual "work" of the"""
"""
Execute the workload. This is the method that performs the actual
"work" of the.
"""
pass
def update_result(self, context):
@@ -83,7 +87,8 @@ class Workload(TargetedPlugin):
class UiAutomatorGUI(object):
def __init__(self, target, package='', klass='UiAutomation', method='runUiAutoamtion'):
def __init__(self, target, package='', klass='UiAutomation',
method='runUiAutoamtion'):
self.target = target
self.uiauto_package = package
self.uiauto_class = klass