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

Unified Diff: PRESUBMIT.py

Issue 2523993003: [test] Let presubmit only run over affected files. (Closed)
Patch Set: .. Created 4 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
« no previous file with comments | « no previous file | tools/presubmit.py » ('j') | tools/presubmit.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PRESUBMIT.py
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index ad218330b180a4c0ee1a379dfa4e8c2ccda98421..0d5bb177db8d538c7bf65124b9380370979107e4 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -71,9 +71,9 @@ def _V8PresubmitChecks(input_api, output_api):
from presubmit import CheckStatusFiles
results = []
- if not CppLintProcessor().Run(input_api.PresubmitLocalPath()):
+ if not CppLintProcessor().RunOnFiles(input_api.AffectedFiles()):
results.append(output_api.PresubmitError("C++ lint check failed"))
- if not SourceProcessor().Run(input_api.PresubmitLocalPath()):
+ if not SourceProcessor().RunOnFiles(input_api.AffectedFiles()):
results.append(output_api.PresubmitError(
"Copyright header, trailing whitespaces and two empty lines " \
"between declarations check failed"))
« no previous file with comments | « no previous file | tools/presubmit.py » ('j') | tools/presubmit.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698