Bug 1538382 - Teach mozinfo to report the correct values for bits and processor on ARM64. r=ahal
authorIan Moody <moz-ian@perix.co.uk>
Wed, 27 Mar 2019 17:02:41 +0000
changeset 466773 bb3a9a19e1083bf1418b72bc9617fce9de83178e
parent 466772 0e99a57e21d69b63116be0dd3f62b8791de51964
child 466774 62c0925f8e1dd9b6f17016ccf553ac7b0248a304
push id35780
push useropoprus@mozilla.com
push dateFri, 29 Mar 2019 21:53:01 +0000
treeherdermozilla-central@414f37afbe07 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahal
bugs1538382
milestone68.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 1538382 - Teach mozinfo to report the correct values for bits and processor on ARM64. r=ahal Differential Revision: https://phabricator.services.mozilla.com/D24574
testing/mozbase/mozinfo/mozinfo/mozinfo.py
--- a/testing/mozbase/mozinfo/mozinfo/mozinfo.py
+++ b/testing/mozbase/mozinfo/mozinfo/mozinfo.py
@@ -139,16 +139,19 @@ info['os_version'] = StringVersion(os_ve
 if processor in ["i386", "i686"]:
     if bits == "32bit":
         processor = "x86"
     elif bits == "64bit":
         processor = "x86_64"
 elif processor.upper() == "AMD64":
     bits = "64bit"
     processor = "x86_64"
+elif processor.upper() == "ARM64":
+    bits = "64bit"
+    processor = "aarch64"
 elif processor == "Power Macintosh":
     processor = "ppc"
 bits = re.search('(\d+)bit', bits).group(1)
 info.update({'processor': processor,
              'bits': int(bits),
              })
 
 if info['os'] == 'linux':