DescriptionPRESUBMIT: Fix bug in sources-above-target check.
The current implementation is matching against sources
which sometimes gets too wide (as seen in
https://codereview.webrtc.org/1999113002 where tools.gyp
contains a key 'process_outputs_as_sources', making it fail
on the GYP dependency.
The file checking operations were also performed against
group(0) of the regex match, which is all of it. The regex was
written with the goal of processing what matched group(1), i.e.
what's inside the sources list.
TESTED=I ran git cl presubmit against https://codereview.webrtc.org/1999113002 with this patch applied, without getting any errors.
Committed: https://crrev.com/74290b9d9c686603f1b8cafe9b4131a03485bf0c
Cr-Commit-Position: refs/heads/master@{#13154}
Patch Set 1 #
Messages
Total messages: 7 (3 generated)
|