Sync 'git cl presubmit' and 'tools/presubmit.py'
More precisely, add CheckGeneratedRuntimeTests to checks performed by 'git cl presubmit'. R=machenbach@chromium.org Review URL: https://codereview.chromium.org/352583005 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21970 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
9d58d1428a
commit
426061d3d0
@ -41,6 +41,7 @@ def _V8PresubmitChecks(input_api, output_api):
|
||||
input_api.PresubmitLocalPath(), 'tools'))
|
||||
from presubmit import CppLintProcessor
|
||||
from presubmit import SourceProcessor
|
||||
from presubmit import CheckGeneratedRuntimeTests
|
||||
|
||||
results = []
|
||||
if not CppLintProcessor().Run(input_api.PresubmitLocalPath()):
|
||||
@ -49,6 +50,9 @@ def _V8PresubmitChecks(input_api, output_api):
|
||||
results.append(output_api.PresubmitError(
|
||||
"Copyright header, trailing whitespaces and two empty lines " \
|
||||
"between declarations check failed"))
|
||||
if not CheckGeneratedRuntimeTests(input_api.PresubmitLocalPath()):
|
||||
results.append(output_api.PresubmitError(
|
||||
"Generated runtime tests check failed"))
|
||||
return results
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user