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

Side by Side Diff: scripts/slave/recipes/example/defer_multiple.py

Issue 1151423002: Move recipe engine to third_party/recipe_engine. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Moved field_composer_test with its buddies Created 5 years, 6 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
« no previous file with comments | « scripts/slave/recipes/chromium_mojo.py ('k') | scripts/slave/recipes/skia/skia.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 DEPS = [ 5 DEPS = [
6 'step', 6 'step',
7 'example', 7 'example',
8 ] 8 ]
9 9
10 from slave import recipe_api 10 from recipe_engine import recipe_api
11 11
12 @recipe_api.composite_step 12 @recipe_api.composite_step
13 def deferrer(api): 13 def deferrer(api):
14 with api.step.defer_results(): 14 with api.step.defer_results():
15 api.example('aggregated start') 15 api.example('aggregated start')
16 api.example('aggregated finish') 16 api.example('aggregated finish')
17 17
18 def normal(api): 18 def normal(api):
19 api.example('normal start') 19 api.example('normal start')
20 api.example('normal finish') 20 api.example('normal finish')
(...skipping 30 matching lines...) Expand all
51 51
52 yield ( 52 yield (
53 api.test('nested_normal_fail') + 53 api.test('nested_normal_fail') +
54 api.step_data('normal start', retcode=1) 54 api.step_data('normal start', retcode=1)
55 ) 55 )
56 56
57 yield ( 57 yield (
58 api.test('nested_comp_fail') + 58 api.test('nested_comp_fail') +
59 api.step_data('composite start', retcode=1) 59 api.step_data('composite start', retcode=1)
60 ) 60 )
OLDNEW
« no previous file with comments | « scripts/slave/recipes/chromium_mojo.py ('k') | scripts/slave/recipes/skia/skia.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698