| OLD | NEW |
| (Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 DEPS = [ |
| 6 'file', |
| 7 'path', |
| 8 'platform', |
| 9 'step', |
| 10 'cipd', |
| 11 ] |
| 12 |
| 13 def RunSteps(api): |
| 14 # Prepare files. |
| 15 temp = api.path.mkdtemp('cipd-example') |
| 16 |
| 17 api.cipd.install_client("install cipd") |
| 18 |
| 19 pkgs = { |
| 20 "infra/monitoring/dispatcher/linux-amd64": { |
| 21 'version': '7f751b2237df2fdf3c1405be00590fefffbaea2d', |
| 22 }, |
| 23 } |
| 24 |
| 25 api.cipd.ensure_installed(temp.join('bin'), pkgs) |
| 26 |
| 27 api.cipd.platform_tag() |
| 28 |
| 29 # Clean up. |
| 30 api.file.rmtree('cleanup', temp) |
| 31 |
| 32 |
| 33 def GenTests(api): |
| 34 yield api.test('basic') |
| 35 yield api.test('install-failed') + api.step_data('install cipd', retcode=1) |
| 36 |
| OLD | NEW |