From 5b543d2edf213c34f7e31483b573c5575912a1d6 Mon Sep 17 00:00:00 2001 From: James Hartley Date: Thu, 24 Nov 2016 12:47:57 +0000 Subject: [PATCH] Fix exact_apk_version check --- wlauto/common/android/workload.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wlauto/common/android/workload.py b/wlauto/common/android/workload.py index 8c1b0067..53ac75fb 100644 --- a/wlauto/common/android/workload.py +++ b/wlauto/common/android/workload.py @@ -229,9 +229,9 @@ class ApkWorkload(Workload): raise ResourceError(msg.format(self.name)) if self.exact_apk_version is not None: - if self.exact_apk_version != target_version and self.version != host_version: + if self.exact_apk_version != target_version and self.exact_apk_version != host_version: msg = "APK version '{}' not found on the host '{}' or target '{}'" - raise ResourceError(msg.format(self.version, host_version, target_version)) + raise ResourceError(msg.format(self.exact_apk_version, host_version, target_version)) # Ensure the apk is setup on the device if self.force_install: