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 250417 0e0204877015
parent 250416 2d55d8220616
child 250418 c8f377118985
push id4582
push userryanvm@gmail.com
push date2015-03-18 14:23 +0000
treeherdermozilla-beta@0e0204877015 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahal, test-only
bugs1142552
milestone37.0
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
@@ -672,17 +672,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')