Closed
Bug 1110817
Opened 10 years ago
Closed 10 years ago
[mozdevice] - adb_android.is_device_ready - UnboundLocalError: local variable 'data' referenced before assignment
Categories
(Testing :: Mozbase, defect)
Testing
Mozbase
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla37
People
(Reporter: bc, Assigned: bc)
Details
Attachments
(1 file)
2.56 KB,
patch
|
wlach
:
review+
|
Details | Diff | Splinter Review |
In is_device_ready <http://dxr.mozilla.org/mozilla-central/source/testing/mozbase/mozdevice/mozdevice/adb_android.py#75> it is possible for 'data' to not be initialized before the not success debug statement if get_state never returns 'device' or if the pm_list_cmd returns an error string. This patch changes the variable name to 'failure' and makes sure to initialize it and set it everywhere success is set to False.
Attachment #8535622 -
Flags: review?(wlachance)
Comment 1•10 years ago
|
||
Comment on attachment 8535622 [details] [diff] [review] adb_android_is_device_ready.patch Review of attachment 8535622 [details] [diff] [review]: ----------------------------------------------------------------- lgtm!
Attachment #8535622 -
Flags: review?(wlachance) → review+
Assignee | ||
Comment 2•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/224479de335a I had tried a try run but could not get android tests to run. I finally gave up and pushed anyway. https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=4c0312072512
Comment 3•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/224479de335a
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
You need to log in
before you can comment on or make changes to this bug.
Description
•