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

Side by Side Diff: third_party/recipe_engine/recipe_modules/properties/example.py

Issue 1241323004: Cross-repo recipe package system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Moved show_me_the_modules into recipe_engine Created 5 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 | 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 from infra.libs.infra_types import thaw 5 from infra.libs.infra_types import thaw
6 6
7 DEPS = ['properties', 'step'] 7 DEPS = [
8 'recipe_engine/properties',
9 'recipe_engine/step',
10 ]
8 11
9 def RunSteps(api): 12 def RunSteps(api):
10 api.step('echo', ['echo'] + [repr(api.properties.thaw()['test_prop'])]) 13 api.step('echo', ['echo'] + [repr(api.properties.thaw()['test_prop'])])
11 api.step('echo all', ['echo'] + [repr(api.properties.thaw())]) 14 api.step('echo all', ['echo'] + [repr(api.properties.thaw())])
12 15
13 def GenTests(api): 16 def GenTests(api):
14 yield api.test('basic') + api.properties( 17 yield api.test('basic') + api.properties(
15 test_prop={'key': 'value'}) 18 test_prop={'key': 'value'})
16 yield api.test('lists') + api.properties( 19 yield api.test('lists') + api.properties(
17 test_prop={'key': ['value', ['value']]}) 20 test_prop={'key': ['value', ['value']]})
18 yield api.test('dicts') + api.properties( 21 yield api.test('dicts') + api.properties(
19 test_prop={'key': {'key': 'value', 'other_key': {'key': 'value'}}}) 22 test_prop={'key': {'key': 'value', 'other_key': {'key': 'value'}}})
20 23
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698