Skip to content

Commit

Permalink
Retry work items when Apple app exit code is not detected (#8428)
Browse files Browse the repository at this point in the history
  • Loading branch information
premun authored Feb 4, 2022
1 parent 6bf25f4 commit d043636
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@ def analyze_operation(command: str, platform: str, device: str, is_device: bool,
elif platform == "apple":
retry_message = 'This is typically not a failure of the work item. It will be run again. '
reboot_message = 'This machine will reboot to heal.'

if exit_code == 82: # RETURN_CODE_NOT_SET
# See https://github.com/dotnet/xharness/issues/812
print(f' Failed to detect app\'s exit code. {retry_message}')
retry = True
return

if is_device:
# If we fail to find a real device, it is unexpected as device queues should have one
Expand Down

0 comments on commit d043636

Please sign in to comment.