Bug 1372922 - Don't log suite_start a second time in reftest if recovering from a crash, r?shinglyu
MozReview-Commit-ID: 45lYTfrCyxN
--- a/layout/tools/reftest/reftest.jsm
+++ b/layout/tools/reftest/reftest.jsm
@@ -527,17 +527,19 @@ function StartTests()
if (gURLs[i].slow && !gRunSlowTests)
continue;
tURLs.push(gURLs[i]);
tIDs.push(gURLs[i].identifier);
}
- logger.suiteStart(tIDs, {"skipped": gURLs.length - tURLs.length});
+ if (gStartAfter === undefined) {
+ logger.suiteStart(tIDs, {"skipped": gURLs.length - tURLs.length});
+ }
if (gTotalChunks > 0 && gThisChunk > 0) {
// Calculate start and end indices of this chunk if tURLs array were
// divided evenly
var testsPerChunk = tURLs.length / gTotalChunks;
var start = Math.round((gThisChunk-1) * testsPerChunk);
var end = Math.round(gThisChunk * testsPerChunk);