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

Unified Diff: PRESUBMIT.py

Issue 10448057: Add refresh support to the console page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/chromium-build
Patch Set: Created 8 years, 7 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 | app.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 e0f0dfb0b16a73b7112080989db6f4755c2ab51f..c61ceaccf9b8dec092f823d84f01b72c511520e3 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -16,12 +16,12 @@ Setup instructions:
To run the tests directly:
export PYTHONPATH="../google_appengine/"
- nosetests --with-gae --gae-lib-root=../
+ nosetests --with-gae --gae-lib-root=../google_appengine/
To interact with the environment:
(insert a line: import code; code.interact(locals=local()))
export PYTHONPATH="../google_appengine/"
- nosetests --with-gae --gae-lib-root=../ -s
+ nosetests --with-gae --gae-lib-root=../google_appengine/ -s
"""
@@ -72,10 +72,17 @@ def CommonChecks(input_api, output_api):
input_api.os_path.join(sdk_path, 'lib'),
input_api.os_path.join(sdk_path, 'lib', 'simplejson'),
] + sys.path
+ # Update our environment to include the standard modules in AppEngine.
+ import appcfg
+ appcfg.fix_sys_path()
+ disabled_warnings = [
+ 'W0232', # has no init, disabled due to webapp2
+ ]
results.extend(input_api.canned_checks.RunPylint(
input_api,
output_api,
- black_list=black_list))
+ black_list=black_list,
+ disabled_warnings=disabled_warnings))
finally:
sys.path = backup_sys_path
return results
« no previous file with comments | « no previous file | app.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698