Moved EnsureCQIncludeTrybotsAreAdded to OutputApi.
This makes them accessible to presubmit scripts' PostUploadHook.
Fixed bugs where caching needed to be bypassed in order for
sequential PostUploadHooks to see each others' results.
BUG=688765
Change-Id: I56c0c6b6419e2474f4b7f701be036fb2a524f8e3
Reviewed-on: https://chromium-review.googlesource.com/439877
Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org>
Reviewed-by: Paweł Hajdan Jr. <phajdan.jr@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Commit-Queue: Kenneth Russell <kbr@chromium.org>
diff --git a/tests/git_cl_test.py b/tests/git_cl_test.py
index bf6ba23..d4be5b9 100755
--- a/tests/git_cl_test.py
+++ b/tests/git_cl_test.py
@@ -38,7 +38,7 @@
pass
def GetIssue(self):
return 1
- def GetDescription(self):
+ def GetDescription(self, force=False):
return ChangelistMock.desc
def UpdateDescription(self, desc, force=False):
ChangelistMock.desc = desc
@@ -57,7 +57,7 @@
pass
@staticmethod
- def get_description(issue):
+ def get_description(issue, force=False):
return 'Issue: %d' % issue
@staticmethod
@@ -178,7 +178,7 @@
codereview_host='host')
cl.description = 'x'
cl.has_description = True
- cl._codereview_impl.FetchDescription = lambda: 'y'
+ cl._codereview_impl.FetchDescription = lambda *a, **kw: 'y'
self.assertEquals(cl.GetDescription(), 'x')
self.assertEquals(cl.GetDescription(force=True), 'y')
self.assertEquals(cl.GetDescription(), 'y')
@@ -1695,7 +1695,7 @@
self.mock(git_cl._RietveldChangelistImpl, 'GetMostRecentPatchset',
lambda x: '60001')
self.mock(git_cl._RietveldChangelistImpl, 'FetchDescription',
- lambda *args: 'Description')
+ lambda *a, **kw: 'Description')
self.mock(git_cl, 'IsGitVersionAtLeast', lambda *args: True)
if new_branch: