Commit 6c7723e7 authored by maruel@chromium.org's avatar maruel@chromium.org

Add --verbose flag when input_api.verbose is set.

It could result in failed tests so I'll revert if it ever becomes problematic.
It ran fine with my limited testing.

R=dpranke@chromium.org
BUG=
TEST=

Review URL: http://codereview.chromium.org/6813114

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@81279 0039d316-1c4b-4281-b951-d872f2087c98
parent cab38e99
......@@ -456,6 +456,7 @@ def RunUnitTests(input_api, output_api, unit_tests):
cmd.append(unit_test)
if input_api.verbose:
print('Running %s' % unit_test)
cmd.append('--verbose')
try:
if input_api.verbose:
input_api.subprocess.check_call(cmd, cwd=input_api.PresubmitLocalPath())
......
......@@ -2015,8 +2015,8 @@ mac|success|blew
input_api.PresubmitLocalPath().AndReturn(self.fake_root_dir)
input_api.PresubmitLocalPath().AndReturn(self.fake_root_dir)
input_api.subprocess.check_call(
['allo'], cwd=self.fake_root_dir)
cmd = ['bar.py']
['allo', '--verbose'], cwd=self.fake_root_dir)
cmd = ['bar.py', '--verbose']
if input_api.platform == 'win32':
cmd.insert(0, input_api.python_executable)
input_api.subprocess.check_call(
......@@ -2044,7 +2044,7 @@ mac|success|blew
input_api.os_listdir(path).AndReturn(['.', '..', 'a', 'b', 'c'])
input_api.os_path.isfile = lambda x: not x.endswith('.')
input_api.subprocess.check_call(
[presubmit.os.path.join('random_directory', 'b')],
[presubmit.os.path.join('random_directory', 'b'), '--verbose'],
cwd=self.fake_root_dir)
self.mox.ReplayAll()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment