From bfe84e6af444cd74fcc4a6c454ad050be06ae9f6 Mon Sep 17 00:00:00 2001 From: Spencer Alger Date: Sat, 10 Jan 2015 14:29:24 -0700 Subject: [PATCH] copy stdout and stderr, but allow it to still flow through --- test/utils/jenkins-reporter.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/utils/jenkins-reporter.js b/test/utils/jenkins-reporter.js index 791b78202..a8a5cae74 100644 --- a/test/utils/jenkins-reporter.js +++ b/test/utils/jenkins-reporter.js @@ -178,10 +178,10 @@ function JenkinsReporter(runner) { var orig = obj.write; obj.write = function (chunk) { if (stack[0]) { - stack[0][name] += chunk; - } else { - orig.apply(obj, arguments); + stack[0][name] = (stack[0][name] || '') + chunk; } + + orig.apply(obj, arguments); }; obj.__restore = function () { this.write = orig;