1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 19:01:15 +01:00

ApkWorkload: clear app data on failed uninstall.

If uninstall fails, "pm clear" should be called to make sure that the
next time the app is launched it starts from a known state (which would
normally be ensured by the uninstall).
This commit is contained in:
Sergei Trofimov 2016-04-19 16:43:42 +01:00
parent 8bc71bb810
commit 697aefc7bb

View File

@ -258,6 +258,7 @@ class ApkWorkload(Workload):
if 'Failure' in output:
if 'ALREADY_EXISTS' in output:
self.logger.warn('Using already installed APK (did not unistall properly?)')
self.reset(context)
else:
raise WorkloadError(output)
else: