0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

slightly more readable test output

This commit is contained in:
dwight 2010-12-24 13:07:26 -05:00
parent 9594f14ef4
commit ee36889eef
3 changed files with 25 additions and 23 deletions

View File

@ -8,6 +8,7 @@ var step = 1;
var conn = null; var conn = null;
function log(str) { function log(str) {
print();
if(str) if(str)
print(testname+" step " + step++ + " " + str); print(testname+" step " + step++ + " " + str);
else else

View File

@ -12,18 +12,18 @@ var files = listFiles("jstests");
var runnerStart = new Date() var runnerStart = new Date()
files.forEach( files.forEach(
function(x) { function (x) {
if ( /[\/\\]_/.test(x.name) || if (/[\/\\]_/.test(x.name) ||
! /\.js$/.test(x.name ) ){ !/\.js$/.test(x.name)) {
print(" >>>>>>>>>>>>>>> skipping " + x.name); print(" >>>>>>>>>>>>>>> skipping " + x.name);
return; return;
} }
print();
print(" *******************************************"); print(" *******************************************");
print(" Test : " + x.name + " ..."); print(" Test : " + x.name + " ...");
print(" " + Date.timeFunc( function() { load(x.name); }, 1) + "ms"); print(" " + Date.timeFunc(function () { load(x.name); }, 1) + "ms");
} }
); );

View File

@ -8,6 +8,7 @@ var step = 1;
var conn = null; var conn = null;
function log(str) { function log(str) {
print();
if(str) if(str)
print(testname+" step " + step++ + " " + str); print(testname+" step " + step++ + " " + str);
else else