[mozdevice] adb.py _check_adb_root should be more resilient to differing outputs

RESOLVED FIXED in Firefox 63

Status

enhancement
RESOLVED FIXED
11 months ago
11 months ago

People

(Reporter: bc, Assigned: bc)

Tracking

Trunk
mozilla63
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox63 fixed)

Details

Attachments

(1 attachment)

In adb.py's ADBDevice._check_adb_root attempts to determine if adbd can be restarted as root by looking at the output of the adb root command. However, it turns out that some devices fail to restart adbd as root but do not emit any output. We can improve this to eliminate the possibility of differing outputs causing incorrect behavior.
Attachment #9003666 - Flags: review?(jmaher)
Attachment #9003666 - Flags: review?(jmaher) → review+
Pushed by bclary@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/e51092dbe3ce
[mozdevice] make adb.py _check_adb_root more resilient to differing outputs, r=jmaher.
https://hg.mozilla.org/mozilla-central/rev/e51092dbe3ce
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Blocks: 1487130
You need to log in before you can comment on or make changes to this bug.