From e729e0d1e6b44d0d4305df4813514029d5bf9830 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 28 Jun 2021 14:15:25 +0200 Subject: [PATCH] scripts: Don't capture output in prepare-release-pr.py (#8805) We don't need to access the output in the script, and if we capture it, we don't get any output on CI, so no way to see why a release failed. --- scripts/prepare-release-pr.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/scripts/prepare-release-pr.py b/scripts/prepare-release-pr.py index 27152fea1..82da553cb 100644 --- a/scripts/prepare-release-pr.py +++ b/scripts/prepare-release-pr.py @@ -66,22 +66,16 @@ def prepare_release_pr( run( ["git", "config", "user.name", "pytest bot"], - text=True, check=True, - capture_output=True, ) run( ["git", "config", "user.email", "pytestbot@gmail.com"], - text=True, check=True, - capture_output=True, ) run( ["git", "checkout", "-b", release_branch, f"origin/{base_branch}"], - text=True, check=True, - capture_output=True, ) print(f"Branch {Fore.CYAN}{release_branch}{Fore.RESET} created.") @@ -92,17 +86,13 @@ def prepare_release_pr( print("Running", " ".join(cmdline)) run( cmdline, - text=True, check=True, - capture_output=True, ) oauth_url = f"https://{token}:x-oauth-basic@github.com/{SLUG}.git" run( ["git", "push", oauth_url, f"HEAD:{release_branch}", "--force"], - text=True, check=True, - capture_output=True, ) print(f"Branch {Fore.CYAN}{release_branch}{Fore.RESET} pushed.")