From 93af721a27419e1e8496c267f96ee1f291717781 Mon Sep 17 00:00:00 2001 From: Solly Ross Date: Tue, 3 Jun 2014 16:58:37 -0400 Subject: [PATCH] Output error events from provider in test runner Now, 'error' events from the test runner are output to stderr. Additionally, when debug is enabled, debug output is logged to stderr instead of stdout (as was the case previously). --- tests/run_from_console.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/run_from_console.js b/tests/run_from_console.js index 3a79360..06b4091 100755 --- a/tests/run_from_console.js +++ b/tests/run_from_console.js @@ -297,10 +297,16 @@ if (!program.outputHtml && !program.generateHtml) { if (program.debug) { provider.on('console', function(line) { - console.log(line); + // log to stderr + console.error(line); }); } + provider.on('error', function(line) { + // log to stderr + console.error('ERROR: ' + line); + }); + /*gprom.finally(function(ph) { ph.exit(); // exit with a status code that actually gives information