Add gclient_utils to InputAPI export.

Let me make them exported via InputAPI to be used by our repo.

Change-Id: I1a0c7f49ab5a3c00b2617062444d67bbb9600837
Reviewed-on: https://chromium-review.googlesource.com/1117958
Commit-Queue: Yoshisato Yanagisawa <yyanagisawa@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
changes/58/1117958/5
Yoshisato Yanagisawa 7 years ago committed by Commit Bot
parent ae1f03388f
commit 406de133ef

@ -13,10 +13,10 @@ __version__ = '1.8.0'
# change). We should add it as our presubmit scripts start feeling slow. # change). We should add it as our presubmit scripts start feeling slow.
import ast # Exposed through the API. import ast # Exposed through the API.
import cpplint import contextlib
import cPickle # Exposed through the API. import cPickle # Exposed through the API.
import cpplint
import cStringIO # Exposed through the API. import cStringIO # Exposed through the API.
import contextlib
import fnmatch # Exposed through the API. import fnmatch # Exposed through the API.
import glob import glob
import inspect import inspect
@ -44,7 +44,7 @@ from warnings import warn
# Local imports. # Local imports.
import fix_encoding import fix_encoding
import gclient_utils import gclient_utils # Exposed through the API
import git_footers import git_footers
import gerrit_util import gerrit_util
import owners import owners
@ -549,15 +549,16 @@ class InputApi(object):
self.cpplint = cpplint self.cpplint = cpplint
self.cStringIO = cStringIO self.cStringIO = cStringIO
self.fnmatch = fnmatch self.fnmatch = fnmatch
self.gclient_utils = gclient_utils
self.glob = glob.glob self.glob = glob.glob
self.json = json self.json = json
self.logging = logging.getLogger('PRESUBMIT') self.logging = logging.getLogger('PRESUBMIT')
self.marshal = marshal
self.os_listdir = os.listdir self.os_listdir = os.listdir
self.os_walk = os.walk
self.os_path = os.path self.os_path = os.path
self.os_stat = os.stat self.os_stat = os.stat
self.os_walk = os.walk
self.pickle = pickle self.pickle = pickle
self.marshal = marshal
self.re = re self.re = re
self.subprocess = subprocess self.subprocess = subprocess
self.tempfile = tempfile self.tempfile = tempfile

@ -936,26 +936,29 @@ class InputApiUnittest(PresubmitTestsBase):
'AffectedSourceFiles', 'AffectedSourceFiles',
'AffectedTestableFiles', 'AffectedTestableFiles',
'AffectedTextFiles', 'AffectedTextFiles',
'Command',
'CreateTemporaryFile',
'DEFAULT_BLACK_LIST', 'DEFAULT_BLACK_LIST',
'DEFAULT_WHITE_LIST', 'DEFAULT_WHITE_LIST',
'CreateTemporaryFile',
'FilterSourceFile', 'FilterSourceFile',
'LocalPaths', 'LocalPaths',
'Command',
'RunTests',
'PresubmitLocalPath', 'PresubmitLocalPath',
'ReadFile', 'ReadFile',
'RightHandSideLines', 'RightHandSideLines',
'RunTests',
'ast', 'ast',
'basename', 'basename',
'cPickle',
'cpplint',
'cStringIO',
'canned_checks', 'canned_checks',
'change', 'change',
'cPickle',
'cpplint',
'cpu_count', 'cpu_count',
'cStringIO',
'dry_run',
'environ', 'environ',
'fnmatch', 'fnmatch',
'gclient_utils',
'gerrit',
'glob', 'glob',
'is_committing', 'is_committing',
'is_windows', 'is_windows',
@ -963,9 +966,9 @@ class InputApiUnittest(PresubmitTestsBase):
'logging', 'logging',
'marshal', 'marshal',
'os_listdir', 'os_listdir',
'os_walk',
'os_path', 'os_path',
'os_stat', 'os_stat',
'os_walk',
'owners_db', 'owners_db',
'owners_finder', 'owners_finder',
'parallel', 'parallel',
@ -981,10 +984,8 @@ class InputApiUnittest(PresubmitTestsBase):
'traceback', 'traceback',
'unittest', 'unittest',
'urllib2', 'urllib2',
'version',
'verbose', 'verbose',
'dry_run', 'version',
'gerrit',
] ]
# If this test fails, you should add the relevant test. # If this test fails, you should add the relevant test.
self.compareMembers( self.compareMembers(

Loading…
Cancel
Save