aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/bots/recipe_modules/ct/example.py
blob: 3b3c3f22e369e1eb862371215dcbaa901c847414 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.


DEPS = [
  'ct',
  'recipe_engine/path',
]


def RunSteps(api):
  api.ct.download_swarming_skps(
      'All', '0', 'abc123',
      api.path['start_dir'].join('skps'),
      start_range=100,
      num_skps=100)


def GenTests(api):
  yield api.test('test')
  yield (
      api.test('failed_gsutil') +
      api.step_data('gsutil cp', retcode=1)
  )