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 213033 cb2065b39352c9bd94cf783b374ffd991dda45b6
parent 213032 716fba2842f91ca1fe349491751639387eb5e6bb
child 213034 f2e96abcf61003fc0bc86261a16483dee33b2d5c
push id27738
push usercbook@mozilla.com
push dateThu, 30 Oct 2014 13:46:07 +0000
treeherdermozilla-central@1aa1b23d799e [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;
     }
   }