mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 12:06:08 +00:00
fw/workload: Use apk version for workload if not set.
If a workloads `version` attribute is not set, and an APK file is found, use this as the version number. This allows for workloads to not specify a default version via parameters and for an available APK to be automatically chosen.
This commit is contained in:
parent
462a5b651a
commit
f267fc9277
@ -271,6 +271,9 @@ class ApkWorkload(Workload):
|
||||
def initialize(self, context):
|
||||
super(ApkWorkload, self).initialize(context)
|
||||
self.apk.initialize(context)
|
||||
# pylint: disable=access-member-before-definition, attribute-defined-outside-init
|
||||
if self.version is None:
|
||||
self.version = self.apk.apk_info.version_name
|
||||
if self.view is None:
|
||||
self.view = 'SurfaceView - {}/{}'.format(self.apk.package,
|
||||
self.apk.activity)
|
||||
|
Loading…
x
Reference in New Issue
Block a user