diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2025-01-26 01:51:17 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-26 01:51:17 -0500 |
| commit | c40936fc2fdb1cbf39bde262388304d9dc438b8f (patch) | |
| tree | f4205515715b120caa8e0d420c93a2f6b7296359 /src/ci/github-actions | |
| parent | a70b0d5bdd4358b961fd62366d80174147c09a7e (diff) | |
| parent | 8eebbbaac2adabf4e442eadccf71e6f470871b37 (diff) | |
| download | rust-c40936fc2fdb1cbf39bde262388304d9dc438b8f.tar.gz rust-c40936fc2fdb1cbf39bde262388304d9dc438b8f.zip | |
Rollup merge of #135953 - cuviper:ci-run-local-fail, r=Kobzol
ci.py: check the return code in `run-local` If the run fails, it should report that and return a non-zero exit status. The simplest way to do that is with `run(..., check=True)`, which raises a `CalledProcessError`.
Diffstat (limited to 'src/ci/github-actions')
| -rwxr-xr-x | src/ci/github-actions/ci.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ci/github-actions/ci.py b/src/ci/github-actions/ci.py index b7dac412dbe..c93766ef33a 100755 --- a/src/ci/github-actions/ci.py +++ b/src/ci/github-actions/ci.py @@ -249,7 +249,7 @@ def run_workflow_locally(job_data: Dict[str, Any], job_name: str, pr_jobs: bool) env = os.environ.copy() env.update(custom_env) - subprocess.run(args, env=env) + subprocess.run(args, env=env, check=True) def calculate_job_matrix(job_data: Dict[str, Any]): |
