Bug 1044414 - Add a fallback for unknown platforms after bug 945869. r=ted, a=NPOTB
authorMike Hommey <mh+mozilla@glandium.org>
Fri, 01 Aug 2014 15:55:42 +0900
changeset 208224 91dca763d0f5
parent 208223 faf3b10d4868
child 208225 aa124023125a
push id3782
push userryanvm@gmail.com
push date2014-08-04 16:21 +0000
treeherdermozilla-beta@e61371be0f38 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted, NPOTB
bugs1044414, 945869
milestone32.0
Bug 1044414 - Add a fallback for unknown platforms after bug 945869. r=ted, a=NPOTB
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"