aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/bots/recipe_modules/ct/example.py
diff options
context:
space:
mode:
Diffstat (limited to 'infra/bots/recipe_modules/ct/example.py')
-rw-r--r--infra/bots/recipe_modules/ct/example.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/infra/bots/recipe_modules/ct/example.py b/infra/bots/recipe_modules/ct/example.py
new file mode 100644
index 0000000000..3b3c3f22e3
--- /dev/null
+++ b/infra/bots/recipe_modules/ct/example.py
@@ -0,0 +1,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)
+ )