Closed Bug 1366919 Opened 7 years ago Closed 7 years ago

mozregression OS detection doesn't work under MSYS2 on Windows

Categories

(Testing :: mozregression, defect)

defect
Not set
normal

Tracking

(firefox55 fixed)

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: emorley, Assigned: wlach)

Details

Attachments

(2 files)

Using MSYS2 on Windows 10 with Python installed via MSYS2, I get:

$ mozregression --good 2016-06-01
...
 0:00.09 ERROR: mozregression supports linux, mac and windows but your os is reported as 'UNKNOWN'.

Changing this mozinfo line:

> elif system.startswith('MINGW'):
(https://hg.mozilla.org/mozilla-central/file/f9ca97a334296facd2e0ea5582e7f12d0fe70fe4/testing/mozbase/mozinfo/mozinfo/mozinfo.py#l90)

...to this fixes the issue:

> elif system.startswith('MINGW') or system.startswith('MSYS_NT'):

Since:

$ python -c 'import platform; print platform.uname()[0]'
MSYS_NT-10.0
Thanks Ed! I guess I'll take this one.

Steps:

1. Make emorley's change
2. Bump version of mozinfo and push new version to pypi
3. Release new version of mozregression w/ updated dependency
Assignee: nobody → wlachance
Many thanks!
Attachment #8870484 - Flags: review?(ted) → review?(ahalberstadt)
Attachment #8870485 - Flags: review?(ted) → review?(ahalberstadt)
Comment on attachment 8870484 [details]
Bug 1366919 - Consider MSYS_NT to equal windows in mozinfo

https://reviewboard.mozilla.org/r/141912/#review149796
Attachment #8870484 - Flags: review?(ahalberstadt) → review+
Comment on attachment 8870485 [details]
Bug 1366919 - Bump mozinfo version to 0.10

https://reviewboard.mozilla.org/r/141914/#review149798
Attachment #8870485 - Flags: review?(ahalberstadt) → review+
Pushed by wlachance@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/88b1189b4fdd
Consider MSYS_NT to equal windows in mozinfo r=ahal
https://hg.mozilla.org/integration/autoland/rev/6ebd3de09d6c
Bump mozinfo version to 0.10 r=ahal
https://hg.mozilla.org/mozilla-central/rev/88b1189b4fdd
https://hg.mozilla.org/mozilla-central/rev/6ebd3de09d6c
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: