| OLD | NEW |
| 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 Loading... |
| 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 ) |
| OLD | NEW |