mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
remote_runner: Use newline instead of backslash n
This commit is contained in:
parent
713e57b451
commit
68b041c4fb
2 changed files with 2 additions and 2 deletions
|
@ -104,7 +104,7 @@ $(() => {
|
|||
const append = (text) => {
|
||||
// Indent each line.
|
||||
const lines = text.split('\n').map((line) => ' '.repeat(level * 2) + line);
|
||||
$console.append(document.createTextNode(`${lines.join('\\n')}\\n`));
|
||||
$console.append(document.createTextNode(`${lines.join('\n')}\n`));
|
||||
};
|
||||
|
||||
const total = runner.total;
|
||||
|
|
|
@ -53,7 +53,7 @@ const sauceTestWorker = async.queue(async (testSettings) => {
|
|||
let logIndex = 0;
|
||||
while (true) {
|
||||
const consoleText = await browser.eval("$('#console').text()") || '';
|
||||
consoleText.substring(logIndex).split('\\n').forEach((line) => log(line, pfx));
|
||||
consoleText.substring(logIndex).split('\n').forEach((line) => log(line, pfx));
|
||||
logIndex = consoleText.length;
|
||||
const [finished, nFailedStr] = consoleText.match(finishedRegex) || [];
|
||||
if (finished) {
|
||||
|
|
Loading…
Reference in a new issue