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

AndroidWorkload: Fixed validate version error messages.

Fixed typos in ``validate_version`` method which caused incorrect reporting
of maximum apk version.
This commit is contained in:
Marc Bonnici 2016-12-12 18:09:40 +00:00
parent f7e4232eaa
commit 694d51ffb6

View File

@ -338,7 +338,7 @@ class ApkWorkload(Workload):
version > LooseVersion(max_apk_version):
msg = "version '{}' not supported. " \
"Minimum version required: '{}', Maximum version known to work: '{}'"
raise ResourceError(msg.format(version, min_apk_version))
raise ResourceError(msg.format(version, min_apk_version, max_apk_version))
elif min_apk_version is not None:
if version < LooseVersion(min_apk_version):
@ -350,7 +350,7 @@ class ApkWorkload(Workload):
if version > LooseVersion(max_apk_version):
msg = "version '{}' not supported. " \
"Maximum version known to work: '{}'"
raise ResourceError(msg.format(version, min_apk_version))
raise ResourceError(msg.format(version, max_apk_version))
def launch_package(self):
if not self.activity: