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

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

Issue 23889036: Refactor the way that TestApi works so that it is actually useful. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Yeeeeaaaahhhhhh! Created 7 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 'chromite', 6 'chromite',
7 'properties', 7 'properties',
8 ] 8 ]
9 9
10 def GenSteps(api): 10 def GenSteps(api):
11 bits = api.properties['TARGET_BITS'] 11 bits = api.properties['TARGET_BITS']
12 board = 'x86-generic' if bits == 32 else 'amd64-generic' 12 board = 'x86-generic' if bits == 32 else 'amd64-generic'
13 13
14 yield ( 14 yield (
15 api.chromite.checkout(), 15 api.chromite.checkout(),
16 api.chromite.setup_board(board, flags={'cache-dir': '.cache'}), 16 api.chromite.setup_board(board, flags={'cache-dir': '.cache'}),
17 api.chromite.build_packages(board), 17 api.chromite.build_packages(board),
18 ) 18 )
19 19
20 20
21 def GenTests(_api): 21 def GenTests(api):
22 for bits in (32, 64): 22 for bits in (32, 64):
23 yield 'basic_%s' % bits, { 23 yield api.Test('basic_%s' % bits) + api.Properties(TARGET_BITS=bits)
24 'properties': {'TARGET_BITS': bits},
25 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698