File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 66
66
COMMAND : make
67
67
68
68
- ${{ if eq(parameters.patchcheck, 'true') }} :
69
- - script : ./python Tools/scripts/patchcheck.py --ci true
69
+ - script : |
70
+ git fetch origin
71
+ ./python Tools/scripts/patchcheck.py --ci true
70
72
displayName: 'Run patchcheck.py'
71
73
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
72
74
Original file line number Diff line number Diff line change @@ -130,6 +130,8 @@ def changed_files(base_branch=None):
130
130
with subprocess .Popen (cmd .split (),
131
131
stdout = subprocess .PIPE ,
132
132
cwd = SRCDIR ) as st :
133
+ if st .wait () != 0 :
134
+ sys .exit (f'error running { cmd } ' )
133
135
for line in st .stdout :
134
136
line = line .decode ().rstrip ()
135
137
status_text , filename = line .split (maxsplit = 1 )
You can’t perform that action at this time.
0 commit comments