mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 16:36:15 -04:00
remote_runner: Move logIndex
updates into printLog()
This commit is contained in:
parent
a12c475776
commit
08856fe42e
1 changed files with 5 additions and 7 deletions
|
@ -55,7 +55,7 @@ const sauceTestWorker = async.queue((testSettings, callback) => {
|
||||||
// if stopSauce is called via timeout
|
// if stopSauce is called via timeout
|
||||||
// (in contrast to via getStatusInterval) than the log of up to the last
|
// (in contrast to via getStatusInterval) than the log of up to the last
|
||||||
// five seconds may not be available here. It's an error anyway, so don't care about it.
|
// five seconds may not be available here. It's an error anyway, so don't care about it.
|
||||||
printLog(logIndex);
|
printLog();
|
||||||
|
|
||||||
if (timesup) {
|
if (timesup) {
|
||||||
log('[red]FAILED[clear] allowed test duration exceeded', pfx);
|
log('[red]FAILED[clear] allowed test duration exceeded', pfx);
|
||||||
|
@ -100,8 +100,7 @@ const sauceTestWorker = async.queue((testSettings, callback) => {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// not finished yet
|
// not finished yet
|
||||||
printLog(logIndex);
|
printLog();
|
||||||
logIndex = knownConsoleText.length;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}, 5000);
|
}, 5000);
|
||||||
|
@ -109,11 +108,10 @@ const sauceTestWorker = async.queue((testSettings, callback) => {
|
||||||
/**
|
/**
|
||||||
* Replaces color codes in the test runners log, appends
|
* Replaces color codes in the test runners log, appends
|
||||||
* browser name, platform etc. to every line and prints them.
|
* browser name, platform etc. to every line and prints them.
|
||||||
*
|
|
||||||
* @param {number} index offset from where to start
|
|
||||||
*/
|
*/
|
||||||
const printLog = (index) => {
|
const printLog = () => {
|
||||||
knownConsoleText.substring(index).split('\\n').forEach((line) => log(line, pfx));
|
knownConsoleText.substring(logIndex).split('\\n').forEach((line) => log(line, pfx));
|
||||||
|
logIndex = knownConsoleText.length;
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}, 6); // run 6 tests in parrallel
|
}, 6); // run 6 tests in parrallel
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue