about summary refs log tree commit diff
path: root/src/ci/github-actions
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2025-01-26 01:51:17 -0500
committerGitHub <noreply@github.com>2025-01-26 01:51:17 -0500
commitc40936fc2fdb1cbf39bde262388304d9dc438b8f (patch)
treef4205515715b120caa8e0d420c93a2f6b7296359 /src/ci/github-actions
parenta70b0d5bdd4358b961fd62366d80174147c09a7e (diff)
parent8eebbbaac2adabf4e442eadccf71e6f470871b37 (diff)
downloadrust-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-xsrc/ci/github-actions/ci.py2
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]):