Bug 1366919 - Consider MSYS_NT to equal windows in mozinfo r=ahal
authorWilliam Lachance <wlachance@mozilla.com>
Tue, 23 May 2017 13:00:59 -0400
changeset 410492 88b1189b4fddcf87a39c090eff18222e27eaa250
parent 410491 4eac7b44eb988bda2087568c656d890e7b88bd87
child 410493 6ebd3de09d6c2be8ffc4ce977845068f0464e96f
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahal
bugs1366919
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1366919 - Consider MSYS_NT to equal windows in mozinfo r=ahal MozReview-Commit-ID: FtLNulaCDEV
testing/mozbase/mozinfo/mozinfo/mozinfo.py
--- a/testing/mozbase/mozinfo/mozinfo/mozinfo.py
+++ b/testing/mozbase/mozinfo/mozinfo/mozinfo.py
@@ -82,17 +82,17 @@ if system in ["Microsoft", "Windows"]:
         # On windows >= 8.1 the system call that getwindowsversion uses has
         # been frozen to always return the same values. In this case we call
         # the RtlGetVersion API directly, which still provides meaningful
         # values, at least for now.
         major, minor, build_number = get_windows_version()
         version = "%d.%d.%d" % (major, minor, build_number)
 
     os_version = "%d.%d" % (major, minor)
-elif system.startswith('MINGW'):
+elif system.startswith(('MINGW', 'MSYS_NT')):
     # windows/mingw python build (msys)
     info['os'] = 'win'
     os_version = version = unknown
 elif system == "Linux":
     if hasattr(platform, "linux_distribution"):
         (distro, os_version, codename) = platform.linux_distribution()
     else:
         (distro, os_version, codename) = platform.dist()