Bug 1142552 - Update robocop chunking to fix rc10. r=ahal, a=test-only
authorGeoff Brown <gbrown@mozilla.com>
Tue, 17 Mar 2015 09:35:51 -0600
changeset 245472 e2ba5973e4bb
parent 245471 7d23a45099ee
child 245473 d5a003cc284a
push id689
push userryanvm@gmail.com
push date2015-03-20 01:26 +0000
treeherdermozilla-release@e2ba5973e4bb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahal, test-only
bugs1142552
milestone36.0.2
Bug 1142552 - Update robocop chunking to fix rc10. r=ahal, a=test-only
testing/mochitest/runtestsremote.py
--- a/testing/mochitest/runtestsremote.py
+++ b/testing/mochitest/runtestsremote.py
@@ -671,17 +671,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')