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

Unified Diff: slave/skia_slave_scripts/utils/download_from_bucket.py

Issue 648353002: Remove Skia's forked buildbot code (Closed) Base URL: https://skia.googlesource.com/buildbot.git@master
Patch Set: Address comment Created 6 years, 2 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 | « slave/skia_slave_scripts/utils/__init__.py ('k') | slave/skia_slave_scripts/utils/file_utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: slave/skia_slave_scripts/utils/download_from_bucket.py
diff --git a/slave/skia_slave_scripts/utils/download_from_bucket.py b/slave/skia_slave_scripts/utils/download_from_bucket.py
deleted file mode 100755
index 5b7e0346b60b053c593876fb4c54345c90baac9f..0000000000000000000000000000000000000000
--- a/slave/skia_slave_scripts/utils/download_from_bucket.py
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Downloads a single file from a Google Storage Bucket.
-
-To test:
- cd .../buildbot/slave/skia_slave_scripts/utils
- CR_BUILDBOT_PATH=../../../third_party/chromium_buildbot
- PYTHONPATH=$CR_BUILDBOT_PATH/scripts:$CR_BUILDBOT_PATH/site_config \
- python download_from_bucket.py \
- --source_gsurl=gs://chromium-skia-gm/DEPS --dest=~/DEPS
-"""
-
-import optparse
-import sys
-
-from slave import slave_utils
-
-
-def DownloadFromBucket(source_gsurl, dest):
- status = slave_utils.GSUtilDownloadFile(source_gsurl, dest)
- if status != 0:
- raise Exception('ERROR: GSUtilDownloadFile error %d. "%s" -> "%s"' % (
- status, source_gsurl, dest))
- return 0
-
-
-def main(argv):
- option_parser = optparse.OptionParser()
- option_parser.add_option(
- '', '--source_gsurl',
- help='gs://url of the file to download')
- option_parser.add_option(
- '', '--dest',
- help='Destination file/directory where the file will be downloaded.')
- (options, _args) = option_parser.parse_args()
- return DownloadFromBucket(source_gsurl=options.source_gsurl,
- dest=options.dest)
-
-
-if '__main__' == __name__:
- sys.exit(main(None))
« no previous file with comments | « slave/skia_slave_scripts/utils/__init__.py ('k') | slave/skia_slave_scripts/utils/file_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698