Skip to content

Conversation

@red-avtovo
Copy link
Contributor

added daemon for wireless device autoconnection

added daemon for wireless device autoconnection
do
array_device=$(echo ${array[$i]} | tr -d " ")
#string contains check
if [[ ${connected_devices} != *${array_device}* ]]; then

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't it be more appropriate to user grep for this purpose?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

basically it is the same thing

#string contains check
if [[ ${connected_devices} != *${array_device}* ]]; then
echo "Connecting to: ${array_device}"
adb connect ${array_device}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we check the exit code here to make sure the connection was really successful?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, we don't care. Anyway script will be run again after specified delay.
It is the main idea of this PR. Script will try to reconnect to remote device in any case

@red-avtovo
Copy link
Contributor Author

Unfortunately this PR is not finished

@SrinivasanTarget
Copy link
Member

Awesome @red-avtovo 👍

@red-avtovo
Copy link
Contributor Author

Now it's done!

Updated entry point and Dockerfile
@red-avtovo red-avtovo force-pushed the wireless_devices_autoconnect branch from e00d07e to 5360b90 Compare October 20, 2017 11:40
@SrinivasanTarget SrinivasanTarget merged commit b2873c3 into appium:master Oct 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants