mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
remote_runner: Avoid searching the full text for "FINISHED"
This commit is contained in:
parent
3409e3f5e6
commit
a17556b876
1 changed files with 3 additions and 3 deletions
|
@ -50,9 +50,9 @@ const sauceTestWorker = async.queue(async ({name, pfx, testSettings}) => {
|
||||||
// how many characters of the log have been sent to travis
|
// how many characters of the log have been sent to travis
|
||||||
let logIndex = 0;
|
let logIndex = 0;
|
||||||
while (true) {
|
while (true) {
|
||||||
const consoleText = await browser.eval("$('#console').text()") || '';
|
const consoleText = (await browser.eval("$('#console').text()") || '').substring(logIndex);
|
||||||
consoleText.substring(logIndex).split('\n').forEach((line) => log(line, pfx));
|
consoleText.split('\n').forEach((line) => log(line, pfx));
|
||||||
logIndex = consoleText.length;
|
logIndex += consoleText.length;
|
||||||
const [finished, nFailedStr] = consoleText.match(finishedRegex) || [];
|
const [finished, nFailedStr] = consoleText.match(finishedRegex) || [];
|
||||||
if (finished) {
|
if (finished) {
|
||||||
if (nFailedStr !== '0') process.exitCode = 1;
|
if (nFailedStr !== '0') process.exitCode = 1;
|
||||||
|
|
Loading…
Reference in a new issue