Bug 1474877: Fix mach reftest --repeat N. r=jmaher

We need to call ReadTests because otherwise we wouldn't recompute `g.urls`.

Similarly, we don't want to throw when there are no remaining reftests, since we
handle that case properly.

Differential Revision: https://phabricator.services.mozilla.com/D2069

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Emilio Cobos Álvarez 2018-07-12 09:06:28 +00:00
Родитель 4abbfa1d61
Коммит b7c5c14e27
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -508,7 +508,7 @@ function StartTests()
}
g.totalTests = g.urls.length;
if (!g.totalTests && !g.verify)
if (!g.totalTests && !g.verify && !g.repeat)
throw "No tests to run";
g.uriCanvases = {};
@ -626,7 +626,7 @@ function StartCurrentTest()
} else if (g.urls.length == 0 && g.repeat > 0) {
// Repeat
g.repeat--;
StartTests();
ReadTests();
} else {
if (g.urls[0].chaosMode) {
g.windowUtils.enterChaosMode();