-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make sl4a optional by default. #87
Conversation
mobly/controllers/android_device.py
Outdated
# TODO(angli): This function shall be refactored to accommodate all services | ||
# and not have hard coded switch for SL4A when b/29157104 is done. | ||
def start_services(self, skip_sl4a=False): | ||
def start_services(self): | ||
"""Starts long running services on the android device. | ||
|
||
1. Start adb logcat capture. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
List of one element?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -567,14 +558,14 @@ def load_snippet(self, name, package): | |||
self._snippet_clients[name] = client | |||
setattr(self, name, client) | |||
|
|||
def _start_sl4a(self): | |||
"""Create an sl4a connection to the device. | |||
def load_sl4a(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The examples in readme.md will need updating accordingly since they use sl4a currently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In docs/website too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM. Leaving detailed docs review to David as he's more familiar with the docs/examples.
sl4a_shell will have to be modified to call load_sl4a() |
Says Travis CB failed... could you take a look? |
Actually looks like a flake in the unit test
|
Fixes #80