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

Ignore exception for non-fatal permission grant failure

This commit is contained in:
muendelezaji 2016-09-06 18:26:27 +01:00
parent ff2f88fbd7
commit f6b8fd3f4b

View File

@ -341,7 +341,7 @@ class ApkWorkload(Workload):
try:
self.device.execute("pm grant {} {}".format(self.package, permission))
except DeviceError as e:
if "not a changeable permission" in e.message:
if "changeable permission" in e.message or "Unknown permission" in e.message:
self.logger.debug(e)
else:
raise e