Skip to content

Commit 891924f

Browse files
committed
fix: duplicate blank lines in output
Fixes microsoft/vscode#139888
1 parent 0b7b6b7 commit 891924f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

lib/runTest.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,8 @@ async function innerRunTests(
140140
const fullEnv = Object.assign({}, process.env, testRunnerEnv);
141141
const cmd = cp.spawn(executable, args, { env: fullEnv });
142142

143-
cmd.stdout.on('data', function (data) {
144-
console.log(data.toString());
145-
});
146-
147-
cmd.stderr.on('data', function (data) {
148-
console.error(data.toString());
149-
});
143+
cmd.stdout.on('data', d => process.stdout.write(d));
144+
cmd.stderr.on('data', d => process.stderr.write(d));
150145

151146
cmd.on('error', function (data) {
152147
console.log('Test error: ' + data.toString());

0 commit comments

Comments
 (0)