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