From f324f2f4cd4793cabad1f0376bd80df66f6d8c68 Mon Sep 17 00:00:00 2001 From: Michael Hackstein Date: Mon, 23 Feb 2015 18:15:06 +0100 Subject: [PATCH] Filtered jasmine internal error messages from test output --- js/server/modules/org/arangodb/testing.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/server/modules/org/arangodb/testing.js b/js/server/modules/org/arangodb/testing.js index adb4fd2c03..5f733767ff 100644 --- a/js/server/modules/org/arangodb/testing.js +++ b/js/server/modules/org/arangodb/testing.js @@ -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;