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

Unified Diff: infra/PRESUBMIT.py

Issue 2275263002: infra: add presubmit check for recipes (Closed)
Patch Set: bootstrap Created 4 years, 4 months 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
« no previous file with comments | « no previous file | infra/unittests/recipes_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/PRESUBMIT.py
diff --git a/infra/PRESUBMIT.py b/infra/PRESUBMIT.py
new file mode 100644
index 0000000000000000000000000000000000000000..c50be9bbf7589e9e0402775485b2369d2e3f6107
--- /dev/null
+++ b/infra/PRESUBMIT.py
@@ -0,0 +1,19 @@
+# Copyright 2016 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.
+
+def CommonChecks(input_api, output_api):
+ results = []
+
+ results.extend(input_api.RunTests(
+ input_api.canned_checks.GetUnitTestsInDirectory(
+ input_api,
+ output_api,
+ input_api.os_path.join('unittests'),
+ whitelist=[r'.+_test\.py'])))
+
+ return results
+
+
+CheckChangeOnUpload = CommonChecks
+CheckChangeOnCommit = CommonChecks
« no previous file with comments | « no previous file | infra/unittests/recipes_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698