Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(861)

Unified Diff: scripts/slave/recipe_modules/findit/example.py

Issue 1416763007: Add a recipe to identify culprits for chromium compile failures. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Rebase and Address comments. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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',
+ )
+ )

Powered by Google App Engine
This is Rietveld 408576698