Exclude benchmark tests from presubmit check in a non-git checkout.

R=jkummerow@chromium.org

Review URL: https://codereview.chromium.org/83353002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18006 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
yangguo@chromium.org 2013-11-22 12:21:43 +00:00
parent 7158b51125
commit de432db19a

View File

@ -191,7 +191,8 @@ class SourceFileProcessor(object):
return True
def IgnoreDir(self, name):
return name.startswith('.') or name == 'data' or name == 'sputniktests'
return (name.startswith('.') or
name in ('data', 'kraken', 'octane', 'sunspider'))
def IgnoreFile(self, name):
return name.startswith('.')
@ -312,12 +313,8 @@ class SourceProcessor(SourceFileProcessor):
return ['.']
def IgnoreDir(self, name):
return (super(SourceProcessor, self).IgnoreDir(name)
or (name == 'third_party')
or (name == 'gyp')
or (name == 'out')
or (name == 'obj')
or (name == 'DerivedSources'))
return (super(SourceProcessor, self).IgnoreDir(name) or
name in ('third_party', 'gyp', 'out', 'obj', 'DerivedSources'))
IGNORE_COPYRIGHTS = ['cpplint.py',
'daemon.py',