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

Side by Side Diff: scripts/slave/recipe_modules/syzygy/api.py

Issue 1101673005: Extract functions from path recipe module so that step can depend on it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 5 years, 8 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 | Annotate | Revision Log
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import ast 5 import ast
6 import os 6 import os
7 import re 7 import re
8 8
9 from slave import recipe_api 9 from slave import recipe_api
10 10
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 assert self.m.chromium.c.BUILD_CONFIG == 'Release' and self.c.official_build 286 assert self.m.chromium.c.BUILD_CONFIG == 'Release' and self.c.official_build
287 archive_symbols_py = self.m.path['checkout'].join( 287 archive_symbols_py = self.m.path['checkout'].join(
288 'syzygy', 'internal', 'scripts', 'archive_symbols.py') 288 'syzygy', 'internal', 'scripts', 'archive_symbols.py')
289 kasko_dll = self.output_dir.join('*kasko.dll') 289 kasko_dll = self.output_dir.join('*kasko.dll')
290 args = ['-s', '-b', kasko_dll] 290 args = ['-s', '-b', kasko_dll]
291 return self.m.python('upload_symbols', archive_symbols_py, args) 291 return self.m.python('upload_symbols', archive_symbols_py, args)
292 292
293 def clobber_metrics(self): 293 def clobber_metrics(self):
294 """Returns a step that clobbers an existing metrics file.""" 294 """Returns a step that clobbers an existing metrics file."""
295 # TODO(chrisha): Make this whole thing use the JSON output mechanism. 295 # TODO(chrisha): Make this whole thing use the JSON output mechanism.
296 return self.m.path.rmwildcard('metrics.csv', self.output_dir) 296 return self.m.file.rmwildcard('metrics.csv', self.output_dir)
297 297
298 def archive_metrics(self): 298 def archive_metrics(self):
299 """Returns a step that archives any metrics collected by the unittests. 299 """Returns a step that archives any metrics collected by the unittests.
300 This can be called from any build configuration. 300 This can be called from any build configuration.
301 """ 301 """
302 # Determine the name of the archive. 302 # Determine the name of the archive.
303 config = self.m.chromium.c.BUILD_CONFIG 303 config = self.m.chromium.c.BUILD_CONFIG
304 if config == 'Release' and self.c.official_build: 304 if config == 'Release' and self.c.official_build:
305 config = 'Official' 305 config = 'Official'
306 archive_path = 'builds/metrics/%s/%s.csv' % (self.revision, config.lower()) 306 archive_path = 'builds/metrics/%s/%s.csv' % (self.revision, config.lower())
(...skipping 14 matching lines...) Expand all
321 '--overwrite', 321 '--overwrite',
322 '--verbose'] 322 '--verbose']
323 return self.m.python('download_binaries', get_syzygy_binaries_py, args) 323 return self.m.python('download_binaries', get_syzygy_binaries_py, args)
324 324
325 def smoke_test(self): 325 def smoke_test(self):
326 """Returns a step that launches the smoke test script.""" 326 """Returns a step that launches the smoke test script."""
327 smoke_test_py = self.internal_scripts_dir.join('smoke_test.py') 327 smoke_test_py = self.internal_scripts_dir.join('smoke_test.py')
328 build_dir = self.m.path['checkout'].join('build') 328 build_dir = self.m.path['checkout'].join('build')
329 args = ['--verbose', '--build-dir', build_dir] 329 args = ['--verbose', '--build-dir', build_dir]
330 return self.m.python('smoke_test', smoke_test_py, args) 330 return self.m.python('smoke_test', smoke_test_py, args)
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/swarming/example.py ('k') | scripts/slave/recipe_modules/v8/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698