summaryrefslogtreecommitdiff
path: root/Tools/scripts
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2022-03-14 15:28:57 +0200
committerGitHub <noreply@github.com>2022-03-14 15:28:57 +0200
commit23abae621f579014eb29d5c6621f031c8a1a4057 (patch)
tree8cd0b1853b92784a5356e096026e0a620d8d051a /Tools/scripts
parentbb1c543f4a183f5cfdf15aad59f59094d50b37fd (diff)
downloadcpython-git-23abae621f579014eb29d5c6621f031c8a1a4057.tar.gz
CI: Fix patchcheck (GH-31708)
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-xTools/scripts/patchcheck.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tools/scripts/patchcheck.py b/Tools/scripts/patchcheck.py
index 4cab66c8e9..a324eafc52 100755
--- a/Tools/scripts/patchcheck.py
+++ b/Tools/scripts/patchcheck.py
@@ -130,6 +130,8 @@ def changed_files(base_branch=None):
with subprocess.Popen(cmd.split(),
stdout=subprocess.PIPE,
cwd=SRCDIR) as st:
+ if st.wait() != 0:
+ sys.exit(f'error running {cmd}')
for line in st.stdout:
line = line.decode().rstrip()
status_text, filename = line.split(maxsplit=1)