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

Unified Diff: PRESUBMIT.py

Issue 8508015: Create a new depot_tools_testing_lib to move utility modules there (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: rebase against 8508017 Created 9 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: PRESUBMIT.py
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index b80c836c7276f51b027bb14519cad2abffe5a8a3..efc4c68c3d76ef64b4507193aa36cb2a55b06118 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -29,7 +29,7 @@ def CommonChecks(input_api, output_api, tests_to_black_list):
r'^cpplint_chromium\.py$',
r'^python_bin[\/\\].+',
r'^svn_bin[\/\\].+',
- r'^tests[\/\\]\w+?[\/\\].+']
+ r'^depot_tools_testing_lib[\/\\]_rietveld[\/\\].+']
results.extend(input_api.canned_checks.RunPylint(
input_api,
output_api,
@@ -59,7 +59,7 @@ def RunGitClTests(input_api, output_api):
old_sys_path = sys.path
try:
sys.path = [input_api.PresubmitLocalPath()] + sys.path
- from tests import local_rietveld # pylint: disable=W0403
+ from depot_tools_testing_lib import local_rietveld
server = local_rietveld.LocalRietveld()
finally:
sys.path = old_sys_path

Powered by Google App Engine
This is Rietveld 408576698