Skip to content

Commit

Permalink
chore(infra): exit process on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-perkins committed May 9, 2024
1 parent 704765e commit 9f43497
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/scripts/docker.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,7 @@ if (requestHeaded && !hasHeadedConfigFiles) {
console.warn(chalk.yellow.bold('\n⚠️ You are running tests in headed mode, but one or more of your headed config files was not found.\nPlease ensure that both docker-display.txt and docker-display-volume.txt have been created in the correct location.\n'));
}

execa('docker', args, { shell: true, stdio: 'inherit' });
const res = await execa('docker', args, { shell: true, stdio: 'inherit' });

// If underlying scripts failed this whole process should fail too
process.exit(res.exitCode);

0 comments on commit 9f43497

Please sign in to comment.