summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2022-03-14 13:28:57 (GMT)
committerGitHub <noreply@github.com>2022-03-14 13:28:57 (GMT)
commit23abae621f579014eb29d5c6621f031c8a1a4057 (patch)
tree8cd0b1853b92784a5356e096026e0a620d8d051a /Tools
parentbb1c543f4a183f5cfdf15aad59f59094d50b37fd (diff)
downloadcpython-23abae621f579014eb29d5c6621f031c8a1a4057.zip
cpython-23abae621f579014eb29d5c6621f031c8a1a4057.tar.gz
cpython-23abae621f579014eb29d5c6621f031c8a1a4057.tar.bz2
CI: Fix patchcheck (GH-31708)
Diffstat (limited to 'Tools')
-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 4cab66c..a324eaf 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)