Bug 1101976 - fix start-at/end-at support because of odd test formats with mochitest-browser, r=ted
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Thu, 20 Nov 2014 00:02:09 +0000
changeset 217265 2b3bc1c1dbc499701f4e24cbb4ddc0275d85384c
parent 217264 25e663c7f5b0a9f2db35cebf0b96afc1d69703b6
child 217266 5701b10f91eebe91118fb1178e8f5c6f6b20fb0f
push id10135
push usergijskruitbosch@gmail.com
push dateTue, 25 Nov 2014 02:05:54 +0000
treeherderfx-team@35f07c2d524b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs1101976
milestone36.0a1
Bug 1101976 - fix start-at/end-at support because of odd test formats with mochitest-browser, r=ted
testing/mochitest/chunkifyTests.js
--- a/testing/mochitest/chunkifyTests.js
+++ b/testing/mochitest/chunkifyTests.js
@@ -75,16 +75,18 @@ function chunkifyTests(tests, totalChunk
 }
 
 function skipTests(tests, startTestPattern, endTestPattern) {
   var startIndex = 0, endIndex = tests.length - 1;
   for (var i = 0; i < tests.length; ++i) {
     var test_path;
     if ((tests[i] instanceof Object) && ('test' in tests[i])) {
       test_path = tests[i]['test']['url'];
+    } else if ((tests[i] instanceof Object) && ('url' in tests[i])) {
+      test_path = tests[i]['url'];
     } else {
       test_path = tests[i];
     }
     if (startTestPattern && test_path.endsWith(startTestPattern)) {
       startIndex = i;
     }
 
     if (endTestPattern && test_path.endsWith(endTestPattern)) {