Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Unified Diff: tests/gcl_unittest.py

Issue 118498: Make the presubmit output much more compact. (Closed)
Patch Set: Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « presubmit_support.py ('k') | tests/presubmit_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/gcl_unittest.py
diff --git a/tests/gcl_unittest.py b/tests/gcl_unittest.py
index 674b68cc9cf7a0ba55ed136c58fe4202a23214de..1c07de8a61fdbebde6386e503c8835fd507c9374 100755
--- a/tests/gcl_unittest.py
+++ b/tests/gcl_unittest.py
@@ -184,7 +184,7 @@ class UploadCLUnittest(GclTestsBase):
self.mox.StubOutWithMock(change_info, 'Save')
args = ['--foo=bar']
change_info.Save()
- gcl.DoPresubmitChecks(change_info, committing=False).AndReturn(True)
+ gcl.DoPresubmitChecks(change_info, False, True).AndReturn(True)
gcl.GetCodeReviewSetting('CODE_REVIEW_SERVER').AndReturn('my_server')
gcl.os.getcwd().AndReturn('somewhere')
gcl.os.chdir(gcl.GetRepositoryRoot().AndReturn(None))
@@ -205,7 +205,7 @@ class UploadCLUnittest(GclTestsBase):
change_info.Save = self.mox.CreateMockAnything()
args = ['--server=a']
change_info.Save()
- gcl.DoPresubmitChecks(change_info, committing=False).AndReturn(True)
+ gcl.DoPresubmitChecks(change_info, False, True).AndReturn(True)
gcl.GetCodeReviewSetting('CODE_REVIEW_SERVER').AndReturn('my_server')
gcl.tempfile.mkstemp(text=True).AndReturn((42, 'descfile'))
gcl.os.write(42, change_info.description)
@@ -229,7 +229,7 @@ class UploadCLUnittest(GclTestsBase):
change_info.Save = self.mox.CreateMockAnything()
args = ['--no-try']
change_info.Save()
- gcl.DoPresubmitChecks(change_info, committing=False).AndReturn(True)
+ gcl.DoPresubmitChecks(change_info, False, True).AndReturn(True)
gcl.GetCodeReviewSetting('CODE_REVIEW_SERVER').AndReturn('my_server')
gcl.tempfile.mkstemp(text=True).AndReturn((42, 'descfile'))
gcl.os.write(42, change_info.description)
@@ -253,7 +253,7 @@ class UploadCLUnittest(GclTestsBase):
self.mox.StubOutWithMock(change_info, 'Save')
args = []
change_info.Save()
- gcl.DoPresubmitChecks(change_info, committing=False).AndReturn(True)
+ gcl.DoPresubmitChecks(change_info, False, True).AndReturn(True)
gcl.GetCodeReviewSetting('CODE_REVIEW_SERVER').AndReturn('my_server')
gcl.tempfile.mkstemp(text=True).AndReturn((42, 'descfile'))
gcl.os.write(42, change_info.description)
« no previous file with comments | « presubmit_support.py ('k') | tests/presubmit_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698