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

Unified Diff: third_party/WebKit/Source/devtools/PRESUBMIT.py

Issue 2538003002: DevTools: bail out presubmit early if error after node.js or formatting checks (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
Index: third_party/WebKit/Source/devtools/PRESUBMIT.py
diff --git a/third_party/WebKit/Source/devtools/PRESUBMIT.py b/third_party/WebKit/Source/devtools/PRESUBMIT.py
index c7ebd1a7a94f641115dc8be574b8f9da3427376a..17d1c8ab9d0656884755ad7ae69a5114b9519ab9 100644
--- a/third_party/WebKit/Source/devtools/PRESUBMIT.py
+++ b/third_party/WebKit/Source/devtools/PRESUBMIT.py
@@ -204,6 +204,9 @@ def CheckChangeOnUpload(input_api, output_api):
results = []
results.extend(_CheckNodeAndNPMModules(input_api, output_api))
results.extend(_FormatDevtools(input_api, output_api))
+ if any([type(result) is output_api.PresubmitError for result in results]):
dgozman 2016/11/30 23:30:07 Let's return a tuple (results, has_errors) from _F
chenwilliam 2016/12/01 01:32:53 Done.
+ results.extend([output_api.PresubmitError("ERROR: Bailed out of presubmit checks early because errors were found")])
+ return results
results.extend(_CheckDevtoolsStyle(input_api, output_api))
results.extend(_CompileDevtoolsFrontend(input_api, output_api))
results.extend(_CheckConvertSVGToPNGHashes(input_api, output_api))

Powered by Google App Engine
This is Rietveld 408576698