Skip to content

Commit

Permalink
Retry/reboot when app installation fails on Apple devices (#12024)
Browse files Browse the repository at this point in the history
  • Loading branch information
premun authored Dec 23, 2022
1 parent 3003926 commit a2fbdd2
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,12 @@ def analyze_operation(command: str, platform: str, device: str, is_device: bool,
retry = True
return

if exit_code == 78: # PACKAGE_INSTALLATION_FAILURE
print(f' Encountered PACKAGE_INSTALLATION_FAILURE. This might be a transient issue with the device')
retry = True
reboot = True
return

else:
if exit_code == 78: # PACKAGE_INSTALLATION_FAILURE
print(f' Encountered PACKAGE_INSTALLATION_FAILURE. This might be caused by a corrupt simulator')
Expand Down

0 comments on commit a2fbdd2

Please sign in to comment.