mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-02 19:32:34 +01:00
workload: adding basic UIAutomator workload implementation
Added a workload type to handle workloads that have both an APK with an application and associated automation JAR. Added benchmarkpi implementation using using the new workload.
This commit is contained in:
@@ -84,6 +84,13 @@ class Output(object):
|
||||
def add_event(self, message):
|
||||
self.result.add_event(message)
|
||||
|
||||
def get_artifact(self, name):
|
||||
return self.result.get_artifact(name)
|
||||
|
||||
def get_artifact_path(self, name):
|
||||
artifact = self.get_artifact(name)
|
||||
return self.get_path(artifact.path)
|
||||
|
||||
|
||||
class RunOutput(Output):
|
||||
|
||||
@@ -234,6 +241,12 @@ class Result(object):
|
||||
def add_event(self, message):
|
||||
self.events.append(Event(message))
|
||||
|
||||
def get_artifact(self, name):
|
||||
for artifact in self.artifacts:
|
||||
if artifact.name == name:
|
||||
return artifact
|
||||
raise HostError('Artifact "{}" not found'.format(name))
|
||||
|
||||
def to_pod(self):
|
||||
return dict(
|
||||
status=str(self.status),
|
||||
|
Reference in New Issue
Block a user