mirror of https://gitee.com/bigwinds/arangodb
Filtered jasmine internal error messages from test output
This commit is contained in:
parent
bdcabd1a62
commit
f324f2f4cd
|
@ -392,6 +392,7 @@ function readImportantLogLines(logPath) {
|
||||||
var i, j;
|
var i, j;
|
||||||
var importantLines = {};
|
var importantLines = {};
|
||||||
var list=fs.list(logPath);
|
var list=fs.list(logPath);
|
||||||
|
var jasmineTest = fs.join("jasmine", "core");
|
||||||
for (i = 0; i < list.length; i++) {
|
for (i = 0; i < list.length; i++) {
|
||||||
var fnLines = [];
|
var fnLines = [];
|
||||||
if (list[i].slice(0,3) === 'log') {
|
if (list[i].slice(0,3) === 'log') {
|
||||||
|
@ -403,7 +404,8 @@ function readImportantLogLines(logPath) {
|
||||||
var line = buf.asciiSlice(lineStart, j - 1);
|
var line = buf.asciiSlice(lineStart, j - 1);
|
||||||
// filter out regular INFO lines, and test related messages
|
// filter out regular INFO lines, and test related messages
|
||||||
if ((line.search(" INFO ") < 0) &&
|
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);
|
fnLines.push(line);
|
||||||
}
|
}
|
||||||
lineStart = j + 1;
|
lineStart = j + 1;
|
||||||
|
|
Loading…
Reference in New Issue