Bug 1085729 - --start-at and --end-at options broken for mochitests (r=jmaher)
authorVaibhav Agrawal <vaibhavmagarwal@gmail.com>
Wed, 29 Oct 2014 15:18:10 -0700
changeset 237347 cb2065b39352c9bd94cf783b374ffd991dda45b6
parent 237346 716fba2842f91ca1fe349491751639387eb5e6bb
child 237348 f2e96abcf61003fc0bc86261a16483dee33b2d5c
push id4311
push userraliiev@mozilla.com
push dateMon, 12 Jan 2015 19:37:41 +0000
treeherdermozilla-beta@150c9fed433b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher
bugs1085729
milestone36.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 1085729 - --start-at and --end-at options broken for mochitests (r=jmaher)
testing/mochitest/chunkifyTests.js
--- a/testing/mochitest/chunkifyTests.js
+++ b/testing/mochitest/chunkifyTests.js
@@ -66,17 +66,22 @@ function chunkifyTests(tests, totalChunk
   }
 
   return returnTests;
 }
 
 function skipTests(tests, startTestPattern, endTestPattern) {
   var startIndex = 0, endIndex = tests.length - 1;
   for (var i = 0; i < tests.length; ++i) {
-    var test_path = tests[i];
+    var test_path;
+    if ((tests[i] instanceof Object) && ('test' in tests[i])) {
+      test_path = tests[i]['test']['url'];
+    } else {
+      test_path = tests[i];
+    }
     if (startTestPattern && test_path.endsWith(startTestPattern)) {
       startIndex = i;
     }
 
     if (endTestPattern && test_path.endsWith(endTestPattern)) {
       endIndex = i;
     }
   }