Bug 1142552 - Update robocop chunking to fix rc10 on aurora; r=ahal, a=test-only
authorGeoff Brown <gbrown@mozilla.com>
Tue, 17 Mar 2015 09:35:51 -0600
changeset 248168 7f90fdddb5ef9c67946fd313a0ee34173beba31a
parent 248167 0aa24399b11bb93d5844cbaea3be847361092b9b
child 248169 2802cf435885526ed59b1dc5bcc7222ce5a43285
push id7775
push usergbrown@mozilla.com
push dateTue, 17 Mar 2015 15:36:36 +0000
treeherdermozilla-aurora@7f90fdddb5ef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahal, test-only
bugs1142552
milestone38.0a2
Bug 1142552 - Update robocop chunking to fix rc10 on aurora; r=ahal, a=test-only
testing/mochitest/runtestsremote.py
--- a/testing/mochitest/runtestsremote.py
+++ b/testing/mochitest/runtestsremote.py
@@ -796,18 +796,17 @@ def main(args):
         mp.read(options.robocopIni)
         robocop_tests = mp.active_tests(exists=False, **mozinfo.info)
         tests = []
         my_tests = tests
         for test in robocop_tests:
             tests.append(test['name'])
 
         if options.totalChunks:
-            tests_per_chunk = math.ceil(
-                len(tests) / (options.totalChunks * 1.0))
+            tests_per_chunk = float(len(tests)) / options.totalChunks
             start = int(round((options.thisChunk - 1) * tests_per_chunk))
             end = int(round(options.thisChunk * tests_per_chunk))
             if end > len(tests):
                 end = len(tests)
             my_tests = tests[start:end]
             log.info("Running tests %d-%d/%d" % (start + 1, end, len(tests)))
 
         options.extraPrefs.append('browser.search.suggest.enabled=true')