copy stdout and stderr, but allow it to still flow through

This commit is contained in:
Spencer Alger
2015-01-10 14:29:24 -07:00
parent 176febb3b9
commit bfe84e6af4

View File

@ -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;