diff --git a/test/util/src/lib/shell/shell.ts b/test/util/src/lib/shell/shell.ts index 114e8d6a1..3b2097458 100644 --- a/test/util/src/lib/shell/shell.ts +++ b/test/util/src/lib/shell/shell.ts @@ -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'],