| Index: scripts/slave/recipe_modules/findit/example.py
|
| diff --git a/scripts/slave/recipe_modules/findit/example.py b/scripts/slave/recipe_modules/findit/example.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..20c7c75dc8bf205ef559e9231176bc571d8647fa
|
| --- /dev/null
|
| +++ b/scripts/slave/recipe_modules/findit/example.py
|
| @@ -0,0 +1,35 @@
|
| +# Copyright 2015 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 = [
|
| + 'findit',
|
| + 'path',
|
| + 'platform',
|
| + 'properties',
|
| +]
|
| +
|
| +
|
| +def RunSteps(api):
|
| + api.path['checkout'] = api.path.mkdtemp('fake_checkout')
|
| + revision = api.properties['revision']
|
| + repo_dir = api.properties.get('repo_dir')
|
| + api.findit.get_files_affected_by_revision(revision, repo_dir)
|
| +
|
| +
|
| +def GenTests(api):
|
| + yield api.test('affected_files_without_repo_dir') + api.properties(
|
| + revision='r1',
|
| + )
|
| + yield api.test('affected_files_with_repo_dir') + api.properties(
|
| + revision='r1',
|
| + repo_dir='third_party/icu',
|
| + )
|
| + yield (
|
| + api.test('affected_files_on_win') +
|
| + api.platform.name('win') +
|
| + api.properties(
|
| + revision='r1',
|
| + repo_dir='third_party\\icu',
|
| + )
|
| + )
|
|
|