1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-19 04:21:17 +00:00

Merge pull request #414 from marcbonnici/uiauto_install

AndroidWorkload: Uninstall uiauto apks before reinstalling
This commit is contained in:
setrofim 2017-06-20 15:58:42 +01:00 committed by GitHub
commit 797cb3c9ea

View File

@ -99,7 +99,9 @@ class UiAutomatorWorkload(Workload):
for k, v in self.uiauto_params.iter_encoded_items():
params += ' -e {} "{}"'.format(k, v)
self.device.install_apk(self.uiauto_file, replace=True)
if self.device.package_is_installed(self.uiauto_package):
self.device.uninstall(self.uiauto_package)
self.device.install_apk(self.uiauto_file)
instrumention_string = 'am instrument -w -r {} -e class {}.{} {}/{}'
self.command = instrumention_string.format(params, self.uiauto_package,