-
Notifications
You must be signed in to change notification settings - Fork 187
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
Check whether adb forwarding takes effect when hit socket connection failure #957
Conversation
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.
Reviewable status: 0 of 2 files reviewed, 2 unresolved discussions (waiting on @xpconanfan)
mobly/controllers/android_device_lib/snippet_client_v2.py
line 457 at r1 (raw file):
f'netstat tulpn | grep ":{self.host_port}"', shell=True ) if not stdout:
What happens when there is a stdout? Seems like it would just fail silently and run into attribute error in the next line.
mobly/controllers/android_device_lib/snippet_client_v2.py
line 460 at r1 (raw file):
raise errors.Error( self._device, 'The Adb forward command execution does not take effect. Please'
did
Code quote:
does
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.
Reviewable status: 0 of 2 files reviewed, 2 unresolved discussions (waiting on @xianyuanjia and @xpconanfan)
mobly/controllers/android_device_lib/snippet_client_v2.py
line 457 at r1 (raw file):
Previously, xianyuanjia wrote…
What happens when there is a stdout? Seems like it would just fail silently and run into attribute error in the next line.
Opps, good catch. Added the logic to raise an exception with default error message and unit test for it.
mobly/controllers/android_device_lib/snippet_client_v2.py
line 460 at r1 (raw file):
Previously, xianyuanjia wrote…
did
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.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @mhaoli and @xpconanfan)
Check whether adb forwarding takes effect when hit socket connection failure.
Tested E2E locally.
This change is