| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 """Launches the repo bundler.""" | 5 """Launches the repo bundler.""" |
| 6 | 6 |
| 7 DEPS = [ | 7 DEPS = [ |
| 8 'python', | 8 'python', |
| 9 'step', | 9 'step', |
| 10 ] | 10 ] |
| 11 | 11 |
| 12 | 12 |
| 13 def RunSteps(api): | 13 def RunSteps(api): |
| 14 api.python.succeeding_step("success", ["This step is a success"], | 14 api.python.succeeding_step("success", ["This step is a success"], |
| 15 as_log='success') | 15 as_log='success') |
| 16 | 16 |
| 17 # Test that a failing step raises StepFailure. | 17 # Test that a failing step raises StepFailure. |
| 18 was_failure = False | 18 was_failure = False |
| 19 try: | 19 try: |
| 20 api.python.failing_step("failure", "This step is a failure :(") | 20 api.python.failing_step("failure", "This step is a failure :(") |
| 21 except api.step.StepFailure: | 21 except api.step.StepFailure: |
| 22 was_failure = True | 22 was_failure = True |
| 23 assert was_failure | 23 assert was_failure |
| 24 | 24 |
| 25 | 25 |
| 26 def GenTests(api): | 26 def GenTests(api): |
| 27 yield api.test('basic') | 27 yield api.test('basic') |
| OLD | NEW |