Skip to content

Commit

Permalink
Merge pull request #101 from zebrunner/develop
Browse files Browse the repository at this point in the history
#99: added explicit verification that ios device is visible by go-ios…
  • Loading branch information
vdelendik authored Apr 30, 2022
2 parents ece1b82 + 8462693 commit 71f1b25
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions files/start_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@
PLATFORM_NAME=${PLATFORM_NAME,,}
PUBLIC_IP_PROTOCOL=${PUBLIC_IP_PROTOCOL,,}

if [[ "$PLATFORM_NAME" == "ios" ]]; then
ios list | grep $DEVICE_UDID
if [ $? == 1 ]; then
#TODO: #100: find a way to reanimate connected iOS device which is not recognized by go ios utility
echo "Device is not available!"
# exit with status 0 to stop stf device container restart
exit 0
fi
fi


# Note: STF_PROVIDER_... is not a good choice for env variable as STF tries to resolve and provide ... as cmd argument to its service!
if [ -z "${STF_PROVIDER_HOST}" ]; then
# when STF_PROVIDER_HOST is empty
Expand Down

0 comments on commit 71f1b25

Please sign in to comment.