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

Side by Side Diff: third_party/instrumented_libraries/scripts/download_binaries.py

Issue 2732353002: Instrumented libraries: Remove Precise support (Closed)
Patch Set: Rebase Created 3 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 unified diff | Download patch
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2015 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2015 The Chromium 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 """Downloads pre-built sanitizer-instrumented third-party libraries from GCS.""" 6 """Downloads pre-built sanitizer-instrumented third-party libraries from GCS."""
7 7
8 import os 8 import os
9 import re 9 import re
10 import subprocess 10 import subprocess
11 import sys 11 import sys
12 12
13 13
14 SCRIPT_PATH = os.path.abspath(__file__) 14 SCRIPT_PATH = os.path.abspath(__file__)
15 BASE_PATH = os.path.normpath(os.path.join(SCRIPT_PATH, *(4 * ['..']))) 15 BASE_PATH = os.path.normpath(os.path.join(SCRIPT_PATH, *(4 * ['..'])))
16 16
17 # This defaults to the consuming project's base directory, e.g. 'src' in 17 # This defaults to the consuming project's base directory, e.g. 'src' in
18 # chromium. 18 # chromium.
19 BASE_DIR = os.path.basename(BASE_PATH) 19 BASE_DIR = os.path.basename(BASE_PATH)
20 20
21 21
22 def get_ubuntu_release(): 22 def get_ubuntu_release():
23 supported_releases = ['precise', 'trusty'] 23 supported_releases = ['trusty']
24 release = subprocess.check_output(['lsb_release', '-cs']).strip() 24 release = subprocess.check_output(['lsb_release', '-cs']).strip()
25 if release not in supported_releases: 25 if release not in supported_releases:
26 raise Exception("Supported Ubuntu versions: %s", str(supported_releases)) 26 raise Exception("Supported Ubuntu versions: %s", str(supported_releases))
27 return release 27 return release
28 28
29 29
30 def get_configuration(gyp_defines): 30 def get_configuration(gyp_defines):
31 if re.search(r'\b(msan)=1', gyp_defines): 31 if re.search(r'\b(msan)=1', gyp_defines):
32 if 'msan_track_origins=0' in gyp_defines: 32 if 'msan_track_origins=0' in gyp_defines:
33 return 'msan-no-origins' 33 return 'msan-no-origins'
(...skipping 28 matching lines...) Expand all
62 '--no_resume', 62 '--no_resume',
63 '--no_auth', 63 '--no_auth',
64 '--bucket', 'chromium-instrumented-libraries', 64 '--bucket', 'chromium-instrumented-libraries',
65 '-s', sha1file], cwd=target_directory) 65 '-s', sha1file], cwd=target_directory)
66 66
67 return 0 67 return 0
68 68
69 69
70 if __name__ == '__main__': 70 if __name__ == '__main__':
71 sys.exit(main(sys.argv[1:])) 71 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698