mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 16:36:15 -04:00
remote_runner: Treat no text as 0 lines, not 1 empty line
This commit is contained in:
parent
a17556b876
commit
25275f2744
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ const sauceTestWorker = async.queue(async ({name, pfx, testSettings}) => {
|
|||
let logIndex = 0;
|
||||
while (true) {
|
||||
const consoleText = (await browser.eval("$('#console').text()") || '').substring(logIndex);
|
||||
consoleText.split('\n').forEach((line) => log(line, pfx));
|
||||
(consoleText ? consoleText.split('\n') : []).forEach((line) => log(line, pfx));
|
||||
logIndex += consoleText.length;
|
||||
const [finished, nFailedStr] = consoleText.match(finishedRegex) || [];
|
||||
if (finished) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue