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

Unified Diff: buildbot/prebuilt_unittest.py

Issue 6677023: Update prebuilt.py to handle private google storage uploads. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/chromite@master
Patch Set: Add print >> sys.stderr for error message Created 9 years, 9 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 | « buildbot/prebuilt.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: buildbot/prebuilt_unittest.py
diff --git a/buildbot/prebuilt_unittest.py b/buildbot/prebuilt_unittest.py
index 6c7a650d9a2923fc63fa8d38f93bab49bad5d54b..27506a35de1d45921ae37b7d9a42842ebf70e703 100755
--- a/buildbot/prebuilt_unittest.py
+++ b/buildbot/prebuilt_unittest.py
@@ -511,8 +511,14 @@ class TestMain(unittest.TestCase):
self.mox.StubOutWithMock(prebuilt, 'GrabRemotePackageIndex')
prebuilt.GrabRemotePackageIndex(old_binhost).AndReturn(True)
self.mox.StubOutWithMock(prebuilt.PrebuiltUploader, '__init__')
- prebuilt.PrebuiltUploader.__init__(options.upload, 'private',
- options.binhost_base_url, mox.IgnoreArg())
+ self.mox.StubOutWithMock(prebuilt, 'GetBoardPathFromCrosOverlayList')
+ fake_overlay_path = '/fake_path'
+ acl_path = prebuilt.GetBoardPathFromCrosOverlayList(
+ options.build_path, options.board).AndReturn(fake_overlay_path)
+ expected_gs_acl_path = os.path.join(fake_overlay_path,
+ prebuilt._GOOGLESTORAGE_ACL_FILE)
+ prebuilt.PrebuiltUploader.__init__(options.upload, expected_gs_acl_path,
+ options.upload, mox.IgnoreArg())
self.mox.StubOutWithMock(prebuilt.PrebuiltUploader, '_SyncHostPrebuilts')
prebuilt.PrebuiltUploader._SyncHostPrebuilts(options.build_path,
mox.IgnoreArg(), options.key, options.git_sync,
« no previous file with comments | « buildbot/prebuilt.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698