Skip to content

Commit

Permalink
Rollup merge of rust-lang#135953 - cuviper:ci-run-local-fail, r=Kobzol
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
matthiaskrgr authored Jan 25, 2025
2 parents 9d631af + 8eebbba commit 617f49e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ci/github-actions/ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]):
Expand Down

0 comments on commit 617f49e

Please sign in to comment.