1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-08-15 02:29:52 +01:00

Merge pull request from setrofim/master

ApkWorkload: only uninstall if package is already installed
This commit is contained in:
marcbonnici
2017-06-22 14:43:45 +01:00
committed by GitHub

@@ -414,7 +414,7 @@ class ApkWorkload(Workload):
def install_apk(self, context, replace=False): def install_apk(self, context, replace=False):
success = False success = False
if replace: if replace and self.device.package_is_installed(self.package):
self.device.uninstall(self.package) self.device.uninstall(self.package)
output = self.device.install_apk(self.apk_file, timeout=self.install_timeout, output = self.device.install_apk(self.apk_file, timeout=self.install_timeout,
replace=replace, allow_downgrade=True) replace=replace, allow_downgrade=True)