Skip to content

Commit

Permalink
Exit on error
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Mar 6, 2022
1 parent c7acdca commit 71a288d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tools/scripts/patchcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 71a288d

Please sign in to comment.