Bug 1552334 - Ignore case when searching for android bogomips; r=jmaher
authorGeoff Brown <gbrown@mozilla.com>
Sun, 19 May 2019 08:38:48 +0000
changeset 533281 cff3c3d2b3c51ac4b473747b5a660283ade55490
parent 533280 d7a7edbebd6a08f22d78b5c86b2f2d4573eb77dd
child 533282 3a6ea5b272d35eb9cd96401c35bacc6f4d28126c
push id11276
push userrgurzau@mozilla.com
push dateMon, 20 May 2019 13:11:24 +0000
treeherdermozilla-beta@847755a7c325 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher
bugs1552334
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 1552334 - Ignore case when searching for android bogomips; r=jmaher Older Android reported "BogoMIPS"; newer Android reports "bogomips". Differential Revision: https://phabricator.services.mozilla.com/D31730
testing/mozharness/mozharness/mozilla/testing/android.py
--- a/testing/mozharness/mozharness/mozilla/testing/android.py
+++ b/testing/mozharness/mozharness/mozilla/testing/android.py
@@ -287,17 +287,17 @@ class AndroidMixin(object):
         # Search android cpuinfo for "BogoMIPS"; if found and < (minimum), retry
         # this task, in hopes of getting a higher-powered environment.
         # (Carry on silently if BogoMIPS is not found -- this may vary by
         # Android implementation -- no big deal.)
         # See bug 1321605: Sometimes the emulator is really slow, and
         # low bogomips can be a good predictor of that condition.
         bogomips_minimum = int(self.config.get('bogomips_minimum') or 0)
         for line in cpuinfo.split('\n'):
-            m = re.match("BogoMIPS.*: (\d*)", line)
+            m = re.match("BogoMIPS.*: (\d*)", line, re.IGNORECASE)
             if m:
                 bogomips = int(m.group(1))
                 if bogomips_minimum > 0 and bogomips < bogomips_minimum:
                     self.fatal('INFRA-ERROR: insufficient Android bogomips (%d < %d)' %
                                (bogomips, bogomips_minimum),
                                EXIT_STATUS_DICT[TBPL_RETRY])
                 self.info("Found Android bogomips: %d" % bogomips)
                 break