| OLD | NEW |
| 1 # Copyright 2013 The LUCI Authors. All rights reserved. | 1 # Copyright 2013 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.recipe_api import Property | 5 from recipe_engine.recipe_api import Property |
| 6 | 6 |
| 7 DEPS = [ | 7 DEPS = [ |
| 8 'properties', | 8 'properties', |
| 9 'step', | 9 'step', |
| 10 ] | 10 ] |
| 11 | 11 |
| 12 PROPERTIES = { | 12 PROPERTIES = { |
| 13 'command': Property(default=None), | 13 'command': Property(default=None), |
| 14 } | 14 } |
| 15 | 15 |
| 16 def RunSteps(api, command): | 16 def RunSteps(api, command): |
| 17 api.step( | 17 api.step( |
| 18 'trigger some junk', | 18 'trigger some junk', |
| 19 cmd=command, | 19 cmd=command, |
| 20 trigger_specs=[{ | 20 trigger_specs=[{ |
| 21 'builder_name': 'triggered', | 21 'builder_name': 'triggered', |
| 22 'buildbot_changes': [{ | 22 'buildbot_changes': [{ |
| 23 'when_timestamp': 1445412480, | 23 'when_timestamp': 1445412480, |
| 24 }], | 24 }], |
| 25 }]) | 25 }]) |
| 26 | 26 |
| 27 def GenTests(api): | 27 def GenTests(api): |
| 28 yield api.test('basic') | 28 yield api.test('basic') |
| OLD | NEW |