Skip to content

Commit

Permalink
Fix to pick up errors when running multiple commands
Browse files Browse the repository at this point in the history
  • Loading branch information
niallthomson committed Oct 20, 2023
1 parent 95a2632 commit 3d3dd7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/util/src/lib/shell/shell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class DefaultShell implements Shell {
const prefix = this.beforeEach === '' ? '' : `${this.beforeEach} &&`

try {
const buffer: Buffer = child.execSync(`${prefix} ${command} && echo '${DefaultShell.ENV_MARKER}' && env`, {
const buffer: Buffer = child.execSync(`${prefix} set -e && ${command} && echo '${DefaultShell.ENV_MARKER}' && env`, {
timeout: timeout * 1000,
killSignal: 'SIGKILL',
stdio: ['inherit', 'pipe', 'pipe'],
Expand Down

0 comments on commit 3d3dd7f

Please sign in to comment.