remote_runner: Use newline instead of backslash n

pull/5020/head
Richard Hansen 2021-05-02 20:46:00 -04:00
parent 713e57b451
commit 68b041c4fb
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ $(() => {
const append = (text) => { const append = (text) => {
// Indent each line. // Indent each line.
const lines = text.split('\n').map((line) => ' '.repeat(level * 2) + 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; const total = runner.total;

View File

@ -53,7 +53,7 @@ const sauceTestWorker = async.queue(async (testSettings) => {
let logIndex = 0; let logIndex = 0;
while (true) { while (true) {
const consoleText = await browser.eval("$('#console').text()") || ''; 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; logIndex = consoleText.length;
const [finished, nFailedStr] = consoleText.match(finishedRegex) || []; const [finished, nFailedStr] = consoleText.match(finishedRegex) || [];
if (finished) { if (finished) {