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

Unified Diff: PRESUBMIT.py

Issue 19917006: Move all googletest related scripts into googletest/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/swarm_client
Patch Set: Remove unnecessary pylint warning disable Created 7 years, 5 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 | README.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PRESUBMIT.py
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 61df560126145e075bb67c93864b922fad13f6ee..59619ce3506be5c7fef3c49475e24d619caed94b 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -17,6 +17,8 @@ def CommonChecks(input_api, output_api):
sys_path_backup = sys.path
try:
sys.path = [
+ input_api.PresubmitLocalPath(),
+ join('googletest'),
join('tests', 'gtest_fake'),
] + sys.path
output.extend(input_api.canned_checks.RunPylint(input_api, output_api))
@@ -38,6 +40,12 @@ def CommonChecks(input_api, output_api):
input_api.os_path.join(input_api.PresubmitLocalPath(), 'tests'),
whitelist=[r'.+_test\.py$'],
blacklist=integation_tests))
+ output.extend(
+ input_api.canned_checks.RunUnitTestsInDirectory(
+ input_api, output_api,
+ input_api.os_path.join(
+ input_api.PresubmitLocalPath(), 'googletest', 'tests'),
+ whitelist=[r'.+_test\.py$']))
if input_api.is_committing:
output.extend(input_api.canned_checks.PanProjectChecks(input_api,
« no previous file with comments | « no previous file | README.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698