1
0
Fork 0

Filtered jasmine internal error messages from test output

This commit is contained in:
Michael Hackstein 2015-02-23 18:15:06 +01:00 committed by Willi Goesgens
parent bdcabd1a62
commit f324f2f4cd
1 changed files with 3 additions and 1 deletions

View File

@ -392,6 +392,7 @@ function readImportantLogLines(logPath) {
var i, j;
var importantLines = {};
var list=fs.list(logPath);
var jasmineTest = fs.join("jasmine", "core");
for (i = 0; i < list.length; i++) {
var fnLines = [];
if (list[i].slice(0,3) === 'log') {
@ -403,7 +404,8 @@ function readImportantLogLines(logPath) {
var line = buf.asciiSlice(lineStart, j - 1);
// filter out regular INFO lines, and test related messages
if ((line.search(" INFO ") < 0) &&
(line.search("WARNING about to execute:") < 0)) {
(line.search("WARNING about to execute:") < 0) &&
(line.search(jasmineTest) < 0)) {
fnLines.push(line);
}
lineStart = j + 1;