mirror of https://gitee.com/bigwinds/arangodb
Fix brace closing
This commit is contained in:
parent
4bb8a894e6
commit
bd6875e554
|
@ -368,23 +368,23 @@ function startInstance (protocol, options, addArgs, testname) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function readImportantLogLines(logFilename) {
|
function readImportantLogLines(logFilename) {
|
||||||
var importantLines = [];
|
var importantLines = [];
|
||||||
var buf = fs.readBuffer(logFilename);
|
var buf = fs.readBuffer(logFilename);
|
||||||
var i;
|
var i;
|
||||||
var lineStart = 0;
|
var lineStart = 0;
|
||||||
var maxBuffer = buf.length;
|
var maxBuffer = buf.length;
|
||||||
for (i = 0; i < maxBuffer; i++) {
|
for (i = 0; i < maxBuffer; i++) {
|
||||||
if (buf[i] === 10) { // \n
|
if (buf[i] === 10) { // \n
|
||||||
var line = buf.asciiSlice(lineStart, i - 1);
|
var line = buf.asciiSlice(lineStart, i - 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)) {
|
||||||
importantLines.push(line);
|
importantLines.push(line);
|
||||||
}
|
}
|
||||||
lineStart = i + 1;
|
lineStart = i + 1;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return importantLines;
|
}
|
||||||
|
return importantLines;
|
||||||
}
|
}
|
||||||
|
|
||||||
function copy (src, dst) {
|
function copy (src, dst) {
|
||||||
|
|
Loading…
Reference in New Issue