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

Side by Side Diff: tools/jsfunfuzz/download_jsfunfuzz.py

Issue 1706963005: [Swarming] Bundle jsfunfuzz. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2016 the V8 project authors. All rights reserved. 2 # Copyright 2016 the V8 project authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import os 6 import os
7 import re 7 import re
8 import subprocess 8 import subprocess
9 9
10 GCMOLE_PATH = os.path.dirname(os.path.abspath(__file__)) 10 FUZZ_PATH = os.path.dirname(os.path.abspath(__file__))
11 SHA1_PATH = os.path.join(GCMOLE_PATH, 'gcmole-tools.tar.gz.sha1') 11 SHA1_PATH = os.path.join(FUZZ_PATH, 'jsfunfuzz.tar.gz.sha1')
12 12
13 if re.search(r'\bgcmole=1', os.environ.get('GYP_DEFINES', '')): 13 if re.search(r'\bjsfunfuzz=1', os.environ.get('GYP_DEFINES', '')):
14 subprocess.check_call([ 14 subprocess.check_call([
15 'download_from_google_storage', 15 'download_from_google_storage',
16 '-b', 'chrome-v8-gcmole', 16 '-b', 'chrome-v8-jsfunfuzz',
17 '-u', '--no_resume', 17 '-u', '--no_resume',
18 '-s', SHA1_PATH, 18 '-s', SHA1_PATH,
19 '--platform=linux*' 19 '--platform=linux*'
20 ]) 20 ])
21 else: 21 else:
22 print 'Skipping gcmole download as gcmole is not set in gyp flags.' 22 print 'Skipping jsfunfuzz download as jsfunfuzz is not set in gyp flags.'
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698