Skip to content

Commit

Permalink
Prefix stdout and stderr output
Browse files Browse the repository at this point in the history
  • Loading branch information
dlarocque committed Sep 25, 2024
1 parent 454912f commit 137254e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/run_tests_in_ci.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ const argv = yargs.options({
const testProcess = spawn('yarn', ['--cwd', dir, scriptName]);

testProcess.childProcess.stdout.on('data', data => {
testProcessOutput += data.toString();
testProcessOutput += '[stdout]' + data.toString();
});
testProcess.childProcess.stderr.on('data', data => {
testProcessOutput += data.toString();
testProcessOutput += '[stderr]' + data.toString();
});

await testProcess;
Expand Down

0 comments on commit 137254e

Please sign in to comment.