| OLD | NEW |
| 1 # Copyright 2017 The LUCI Authors. All rights reserved. | 1 # Copyright 2017 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed under the Apache License, Version 2.0 | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
| 3 # that can be found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
| 4 | 4 |
| 5 from recipe_engine import recipe_api, config | 5 from recipe_engine import recipe_api, config |
| 6 | 6 |
| 7 DEPS = [ | 7 DEPS = [ |
| 8 'context', | 8 'context', |
| 9 'path', | 9 'path', |
| 10 'step', | 10 'step', |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 # YES: | 35 # YES: |
| 36 with api.step.nest('nested'): | 36 with api.step.nest('nested'): |
| 37 api.step('properly indented', ['bash', '-c', 'echo yay!']) | 37 api.step('properly indented', ['bash', '-c', 'echo yay!']) |
| 38 # AVOID: | 38 # AVOID: |
| 39 with api.context(increment_nest_level=True): | 39 with api.context(increment_nest_level=True): |
| 40 api.step('indented with wrong name', ['bash', '-c', 'echo indent?']) | 40 api.step('indented with wrong name', ['bash', '-c', 'echo indent?']) |
| 41 | 41 |
| 42 | 42 |
| 43 def GenTests(api): | 43 def GenTests(api): |
| 44 yield api.test('basic') | 44 yield api.test('basic') |
| OLD | NEW |