1
0
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:
Sergei Trofimov
2017-03-28 09:58:48 +01:00
parent 6fba05503d
commit 18e7ffb826
16 changed files with 670 additions and 64 deletions

View File

@@ -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),