1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-31 10:11:17 +00:00

ApkWorkload: add package verison to the result as a classifer.

This commit is contained in:
Sergei Trofimov 2016-04-14 11:19:46 +01:00
parent 8d13e1f341
commit 48259d872b
2 changed files with 4 additions and 0 deletions

View File

@ -201,6 +201,7 @@ class ApkWorkload(Workload):
self.logger.debug(message.format(installed_version))
self.reset(context)
self.apk_version = installed_version
context.add_classifiers(apk_version=self.apk_version)
def initialize_with_host_apk(self, context, installed_version):
host_version = ApkInfo(self.apk_file).version_name

View File

@ -204,6 +204,9 @@ class ExecutionContext(object):
def add_metric(self, *args, **kwargs):
self.result.add_metric(*args, **kwargs)
def add_classifiers(self, **kwargs):
self.result.classifiers.update(kwargs)
def add_artifact(self, name, path, kind, *args, **kwargs):
if self.current_job is None:
self.add_run_artifact(name, path, kind, *args, **kwargs)