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

Unified Diff: scripts/slave/recipe_modules/archive/api.py

Issue 2394163006: Reland: Make clusterfuzz_archive include llvm-symbolizer and sancov. (Closed)
Patch Set: add tests Created 4 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 | « no previous file | scripts/slave/recipe_modules/archive/example.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/archive/api.py
diff --git a/scripts/slave/recipe_modules/archive/api.py b/scripts/slave/recipe_modules/archive/api.py
index b451d1b9169b90d18a0bec72916984174de16e5a..0a8a7009dcc2e918193a0a72d5c5a8cf59cdc2f5 100644
--- a/scripts/slave/recipe_modules/archive/api.py
+++ b/scripts/slave/recipe_modules/archive/api.py
@@ -270,6 +270,18 @@ class ArchiveApi(recipe_api.RecipeApi):
else:
staging_dir = self.m.path.mkdtemp('chrome_staging')
+ llvm_tools_to_copy = ['llvm-symbolizer', 'sancov']
+ llvm_bin_dir = self.m.path['checkout'].join('third_party', 'llvm-build',
+ 'Release+Asserts', 'bin')
+ ext = '.exe' if self.m.platform.is_win else ''
+
+ for tool in llvm_tools_to_copy:
+ tool_src = self.m.path.join(llvm_bin_dir, tool + ext)
+ tool_dst = self.m.path.join(build_dir, tool + ext)
+
+ if self.m.path.exists(tool_src) and not self.m.path.exists(tool_dst):
Nico 2016/10/07 19:29:32 This relies on all bots that this runs on being cl
Oliver Chang 2016/10/07 19:53:33 Good point. What I needed was an ignore_errors fla
+ self.m.file.copy('Copy ' + tool, tool_src, tool_dst)
+
# Build the list of files to archive.
zip_file_list = [f for f in self.m.file.listdir('build_dir', build_dir)
if self._cf_should_package_file(f)]
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/archive/example.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698