| 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..107b439b0574d4ad998d92812a6151e77f0ba23f
|
| --- /dev/null
|
| +++ b/scripts/slave/recipe_modules/findit/example.py
|
| @@ -0,0 +1,36 @@
|
| +# 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']
|
| + solution_name = api.properties.get('solution_name')
|
| + api.findit.get_files_affected_by_revision(revision, solution_name)
|
| +
|
| +
|
| +def GenTests(api):
|
| + yield api.test('affected_files_in_src') + api.properties(
|
| + revision='r1',
|
| + solution_name='src',
|
| + )
|
| + yield api.test('affected_files_third_party') + api.properties(
|
| + revision='r1',
|
| + solution_name='src/third_party/pdfium',
|
| + )
|
| + yield (
|
| + api.test('affected_files_on_win') +
|
| + api.platform.name('win') +
|
| + api.properties(
|
| + revision='r1',
|
| + solution_name='src\\third_party\\pdfium',
|
| + )
|
| + )
|
|
|