| OLD | NEW |
| (Empty) |
| 1 # Copyright 2014 The LUCI Authors. All rights reserved. | |
| 2 # Use of this source code is governed under the Apache License, Version 2.0 | |
| 3 # that can be found in the LICENSE file. | |
| 4 | |
| 5 DEPS = [ | |
| 6 'step', | |
| 7 ] | |
| 8 | |
| 9 def RunSteps(api): | |
| 10 ran_both = False | |
| 11 try: | |
| 12 with api.step.defer_results(): | |
| 13 api.step("testa", ["echo", "testa"]) | |
| 14 api.step("testb", ["echo", "testb"]) | |
| 15 ran_both = True | |
| 16 finally: | |
| 17 assert ran_both | |
| 18 | |
| 19 | |
| 20 def GenTests(api): | |
| 21 yield api.test('basic') | |
| 22 | |
| 23 yield ( | |
| 24 api.test('one_fail') + | |
| 25 api.step_data('testa', retcode=1) | |
| 26 ) | |
| OLD | NEW |