diff options
Diffstat (limited to 'infra/bots/recipe_modules/git/examples/full.py')
-rw-r--r-- | infra/bots/recipe_modules/git/examples/full.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/infra/bots/recipe_modules/git/examples/full.py b/infra/bots/recipe_modules/git/examples/full.py new file mode 100644 index 0000000000..a24d903cd5 --- /dev/null +++ b/infra/bots/recipe_modules/git/examples/full.py @@ -0,0 +1,19 @@ +# 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 = [ + 'git', + 'recipe_engine/step', +] + + +def RunSteps(api): + api.step('1', cmd=['git', 'status']) + with api.git.env(): + api.step('2', cmd=['git', 'status']) + + +def GenTests(api): + yield api.test('test') |