Skip to content

Commit

Permalink
include stdout and stderr in the output of the tools
Browse files Browse the repository at this point in the history
  • Loading branch information
arturcic committed Nov 18, 2024
1 parent 1b0ab26 commit 0ad7bfb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .azure/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
'ubuntu-latest':
imageName: 'ubuntu-latest'
'macos-latest':
imageName: 'macos-latest'
imageName: 'macos-15'
'windows-latest':
imageName: 'windows-latest'

Expand Down
4 changes: 2 additions & 2 deletions dist/tools/lib.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { parseArgs } from 'node:util';
import * as process from 'node:process';
import process from 'node:process';

async function getAgent(buildAgent) {
const agent = `./${buildAgent}/agent.mjs`;
Expand Down Expand Up @@ -30,7 +30,7 @@ async function run(agent, tool, command) {
if (stderr) {
process.stderr.write(stderr);
}
process.exit(code);
process.exitCode = code;
}

export { getAgent, getToolRunner, parseCliArgs, run };
Expand Down
2 changes: 1 addition & 1 deletion dist/tools/lib.mjs.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/tools/lib.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { parseArgs } from 'node:util'
import * as process from 'node:process'
import process from 'node:process'

import { type IBuildAgent } from '@agents/common'
import { type IRunner } from '@tools/common'
Expand Down Expand Up @@ -42,5 +42,5 @@ export async function run(agent: string, tool: string, command: string): Promise
if (stderr) {
process.stderr.write(stderr)
}
process.exit(code)
process.exitCode = code
}

0 comments on commit 0ad7bfb

Please sign in to comment.