about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2025-01-23 12:28:52 -0800
committerJosh Stone <jistone@redhat.com>2025-01-24 13:53:02 -0800
commit8eebbbaac2adabf4e442eadccf71e6f470871b37 (patch)
tree852568fe10a57f2db523e5d77db5e8ed6b3a887f /src
parent99768c80a1c094a5cfc3b25a04e7a99de7210eae (diff)
downloadrust-8eebbbaac2adabf4e442eadccf71e6f470871b37.tar.gz
rust-8eebbbaac2adabf4e442eadccf71e6f470871b37.zip
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')
-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]):