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

Merge pull request #258 from ep1cman/install_fix

ApkWorkload: Fixed replacing apps on a device
This commit is contained in:
setrofim 2016-09-26 17:00:39 +01:00 committed by GitHub
commit 77d724efa3

View File

@ -368,7 +368,9 @@ class ApkWorkload(Workload):
def install_apk(self, context, replace=False):
success = False
output = self.device.install(self.apk_file, self.install_timeout, replace=replace)
if replace:
self.device.uninstall(self.package)
output = self.device.install(self.apk_file, self.install_timeout)
if 'Failure' in output:
if 'ALREADY_EXISTS' in output:
self.logger.warn('Using already installed APK (did not unistall properly?)')