Closed Bug 1050211 Opened 12 years ago Closed 8 years ago

mozdevice's getLogcat() does not return a list when tested against b2g device

Categories

(Testing :: Mozbase, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: zcampbell, Assigned: gbrown)

References

Details

With mozdevice 0.39, the getLogcat() method return a list with one entry and the entire logcat rammed into that one entry. It seems perhaps the split is not splitting the lines correctly: http://mxr.mozilla.org/mozilla-central/source/testing/mozbase/mozdevice/mozdevice/devicemanager.py#157 I experimented with splitting the output with `\n` and it splits it into a list correctly.
Also note, python has a convenience method called "splitlines()" we should use instead of split. I wonder why it was splitting on \r before and if changing it will break something somewhere.
Assignee: nobody → gbrown
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.