We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb1c543 commit 23abae6Copy full SHA for 23abae6
.azure-pipelines/posix-steps.yml
@@ -66,7 +66,9 @@ steps:
66
COMMAND: make
67
68
- ${{ if eq(parameters.patchcheck, 'true') }}:
69
- - script: ./python Tools/scripts/patchcheck.py --ci true
+ - script: |
70
+ git fetch origin
71
+ ./python Tools/scripts/patchcheck.py --ci true
72
displayName: 'Run patchcheck.py'
73
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
74
Tools/scripts/patchcheck.py
@@ -130,6 +130,8 @@ def changed_files(base_branch=None):
130
with subprocess.Popen(cmd.split(),
131
stdout=subprocess.PIPE,
132
cwd=SRCDIR) as st:
133
+ if st.wait() != 0:
134
+ sys.exit(f'error running {cmd}')
135
for line in st.stdout:
136
line = line.decode().rstrip()
137
status_text, filename = line.split(maxsplit=1)
0 commit comments