Closed Bug 1667288 Opened 5 years ago Closed 5 years ago

[moznetwork] get_ip() may return loopback address under python 3

Categories

(Testing :: Mozbase, defect)

Default
defect

Tracking

(firefox83 fixed)

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: gbrown, Assigned: gbrown)

Details

Attachments

(1 file)

I hit this running android mochitests under python 3: moznetwork.get_ip() returns the loopback address, 127.0.0.1, rather than the normal IP, subsequently causing trouble for remote mochitests.

I have a simple solution.

Assignee: nobody → whole.grains

Currently on my Ubuntu laptop, when running under python 3, _get_interface_list() returns a list
of (byte, string), like (b'lo', '127.0.0.1') which is both inconsistent and troublesome for name
comparisons like
https://searchfox.org/mozilla-central/rev/89d33e1c3b0a57a9377b4815c2f4b58d933b7c32/testing/mozbase/moznetwork/moznetwork/moznetwork.py#145.
Let's return (string, string) instead, regardless of py2/3.

Pushed by whole.grains@protonmail.com: https://hg.mozilla.org/integration/autoland/rev/b99e823861d8 [moznetwork] Ensure interface names returned by _get_interface_list are strings, even on python 3; r=bc
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: