Skip to content

Commit 71a288d

Browse files
committed
Exit on error
1 parent c7acdca commit 71a288d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tools/scripts/patchcheck.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ def changed_files(base_branch=None):
130130
with subprocess.Popen(cmd.split(),
131131
stdout=subprocess.PIPE,
132132
cwd=SRCDIR) as st:
133+
if st.wait() != 0:
134+
sys.exit(f'error running {cmd}')
133135
for line in st.stdout:
134136
line = line.decode().rstrip()
135137
status_text, filename = line.split(maxsplit=1)

0 commit comments

Comments
 (0)