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

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: 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..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',
+ )
+ )

Powered by Google App Engine
This is Rietveld 408576698