From c0c8b4652316bea6719729a178782aced046ee30 Mon Sep 17 00:00:00 2001 From: Brian Terlson Date: Sun, 14 Dec 2014 15:58:02 -0800 Subject: [PATCH] Only log duration with simple reporter --- bin/run.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/run.js b/bin/run.js index 85ec9ef..a687e61 100755 --- a/bin/run.js +++ b/bin/run.js @@ -56,9 +56,6 @@ var results = _(function(push) { push(null, _.nil); }).merge(); -results.on('end', function() { - console.log("Took " + ((Date.now() - start) / 1000) + " seconds"); -}) if(t262.config.reporter === 'json') { results.pipe(jss).pipe(process.stdout); @@ -66,6 +63,10 @@ if(t262.config.reporter === 'json') { results.pipe(tapify).pipe(process.stdout); } else if(t262.config.reporter === 'simple') { results.pipe(simpleReporter); + + results.on('end', function() { + console.log("Took " + ((Date.now() - start) / 1000) + " seconds"); + }) } // takes a test collateral stream.