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

Unified Diff: tools/gcmole/download_gcmole_tools.py

Issue 1703533002: [Swarming] Bundle gcmole tools. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Correctly exit wrapper. Created 4 years, 10 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 | « DEPS ('k') | tools/gcmole/gcmole-tools.tar.gz.sha1 » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gcmole/download_gcmole_tools.py
diff --git a/tools/gcmole/download_gcmole_tools.py b/tools/gcmole/download_gcmole_tools.py
new file mode 100755
index 0000000000000000000000000000000000000000..7183d28f3488b37736777b87aef640dbf91fbb8c
--- /dev/null
+++ b/tools/gcmole/download_gcmole_tools.py
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+# Copyright 2016 the V8 project authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import os
+import re
+import subprocess
+
+GCMOLE_PATH = os.path.dirname(os.path.abspath(__file__))
+SHA1_PATH = os.path.join(GCMOLE_PATH, 'gcmole-tools.tar.gz.sha1')
+
+if re.search(r'\bgcmole=1', os.environ.get('GYP_DEFINES', '')):
+ subprocess.check_call([
+ 'download_from_google_storage',
+ '-b', 'chrome-v8-gcmole',
+ '-u', '--no_resume',
+ '-s', SHA1_PATH,
+ '--platform=linux*'
+ ])
+else:
+ print 'Skipping gcmole download as gcmole is not set in gyp flags.'
« no previous file with comments | « DEPS ('k') | tools/gcmole/gcmole-tools.tar.gz.sha1 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698