| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 from recipe_engine.recipe_api import Property | 5 from recipe_engine.recipe_api import Property |
| 6 | 6 |
| 7 DEPS = [ | 7 DEPS = [ |
| 8 'cipd', | 8 'cipd', |
| 9 'depot_tools/bot_update', | 9 'depot_tools/bot_update', |
| 10 'depot_tools/gclient', | 10 'depot_tools/gclient', |
| 11 'recipe_engine/path', | 11 'recipe_engine/path', |
| 12 'recipe_engine/properties', |
| 12 ] | 13 ] |
| 13 | 14 |
| 14 | 15 |
| 15 PROPERTIES = { | 16 PROPERTIES = { |
| 16 'mastername': Property(default=''), | 17 'mastername': Property(default=''), |
| 17 'buildername': Property(default=''), | 18 'buildername': Property(default=''), |
| 18 'buildnumber': Property(default=-1, kind=int), | 19 'buildnumber': Property(default=-1, kind=int), |
| 19 } | 20 } |
| 20 | 21 |
| 21 def RunSteps(api, mastername, buildername, buildnumber): | 22 def RunSteps(api, mastername, buildername, buildnumber): |
| (...skipping 10 matching lines...) Expand all Loading... |
| 32 } | 33 } |
| 33 | 34 |
| 34 api.cipd.install_client() | 35 api.cipd.install_client() |
| 35 api.cipd.create( | 36 api.cipd.create( |
| 36 api.path['checkout'].join('infra', 'cipd', 'recipes-py.yaml'), | 37 api.path['checkout'].join('infra', 'cipd', 'recipes-py.yaml'), |
| 37 refs=['latest'], | 38 refs=['latest'], |
| 38 tags=tags) | 39 tags=tags) |
| 39 | 40 |
| 40 | 41 |
| 41 def GenTests(api): | 42 def GenTests(api): |
| 42 yield api.test('basic') | 43 yield api.test('basic') + api.properties(path_config='kitchen') |
| OLD | NEW |