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 252032 0e0204877015c71d8510e27b0152c4a105a155a8
parent 252031 2d55d8220616d7b8204ada676d6d8a87a6ccb1c1
child 252033 c8f3771189852bf887b376c92a3cf76e2ac2da6b
push id698
push userjlund@mozilla.com
push dateMon, 23 Mar 2015 22:08:11 +0000
treeherdermozilla-release@b0c0ae7b02a3 [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')