Bug 1044414 - Add a fallback for unknown platforms after bug 945869. r=ted
authorMike Hommey <mh+mozilla@glandium.org>
Fri, 01 Aug 2014 15:55:42 +0900
changeset 197257 b894570f908386cb5f532f10678769d725e5a23f
parent 197256 1e509bd9e284d9d6838ee3bf4c88d1cc186efa35
child 197258 8d9d227f75ee4d284ba2e2645886081006cac60c
push id27236
push useremorley@mozilla.com
push dateFri, 01 Aug 2014 15:52:48 +0000
treeherdermozilla-central@44e5072476b7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs1044414, 945869
milestone34.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 1044414 - Add a fallback for unknown platforms after bug 945869. r=ted
testing/mozbase/mozinfo/mozinfo/mozinfo.py
--- a/testing/mozbase/mozinfo/mozinfo/mozinfo.py
+++ b/testing/mozbase/mozinfo/mozinfo/mozinfo.py
@@ -66,16 +66,18 @@ elif system == "Darwin":
     (release, versioninfo, machine) = platform.mac_ver()
     version = "OS X %s" % release
     versionNums = release.split('.')[:2]
     os_version = "%s.%s" % (versionNums[0], versionNums[1])
     info['os'] = 'mac'
 elif sys.platform in ('solaris', 'sunos5'):
     info['os'] = 'unix'
     os_version = version = sys.platform
+else:
+    os_version = version = unknown
 
 info['version'] = version
 info['os_version'] = os_version
 
 # processor type and bits
 if processor in ["i386", "i686"]:
     if bits == "32bit":
         processor = "x86"