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

Side by Side Diff: scripts/slave/recipe_modules/goma/example.py

Issue 2207273003: Implement upload_logs() in recipe_modules/goma (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: change for coverage Created 4 years, 4 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 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 DEPS = [ 5 DEPS = [
6 'goma',
6 'recipe_engine/platform', 7 'recipe_engine/platform',
7 'goma', 8 'recipe_engine/properties',
8 ] 9 ]
9 10
10 def RunSteps(api): 11 def RunSteps(api):
11 api.goma.ensure_goma() 12 api.goma.ensure_goma()
12 api.goma.start() 13 api.goma.start(env={})
13 # build something using goma. 14 # build something using goma.
14 api.goma.stop() 15 api.goma.stop(
16 ninja_log_outdir=api.properties.get('ninja_log_outdir'),
17 ninja_log_compiler=api.properties.get('ninja_log_compiler'),
18 ninja_log_command=api.properties.get('ninja_log_command'),
19 ninja_log_exit_status=api.properties.get('ninja_log_exit_status'),
20 )
15 21
16 22
17 def GenTests(api): 23 def GenTests(api):
18 for platform in ('linux', 'win', 'mac'): 24 for platform in ('linux', 'win', 'mac'):
19 yield api.test(platform) + api.platform.name(platform) 25 yield api.test(platform) + api.platform.name(platform)
26
27 properties = {
28 'build_data_dir': 'build_data_dir',
29 'ninja_log_outdir': 'build_data_dir',
30 'ninja_log_compiler': 'goma',
31 'ninja_log_command': 'ninja -j 500',
32 'ninja_log_exit_status': 0,
33 }
34
35 yield (api.test('%s_upload_logs' % platform) + api.platform.name(platform) +
36 api.properties.generic(**properties))
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/goma/api.py ('k') | scripts/slave/recipe_modules/goma/example.expected/linux.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698