mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-20 11:58:55 +00: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:
parent
8bc71bb810
commit
697aefc7bb
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user