Add VPython checks to Chromium presubmit

These checks will validate the syntax and check that all specified packages
exist. Checks will only run when .vpython files are modified.

[email protected], [email protected]

No-Try: true
Bug: 777893
Change-Id: I57a3e2e178f2483f2b96506c11600100d932036d
Reviewed-on: https://chromium-review.googlesource.com/753342
Commit-Queue: Sergiy Byelozyorov <[email protected]>
Reviewed-by: Jochen Eisinger <[email protected]>
Cr-Commit-Position: refs/heads/master@{#514182}
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index a8e8bb2..02cb37a 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -2472,6 +2472,8 @@
   results.extend(_CheckForRiskyJsFeatures(input_api, output_api))
   results.extend(_CheckForRelativeIncludes(input_api, output_api))
   results.extend(_CheckWATCHLISTS(input_api, output_api))
+  results.extend(input_api.RunTests(
+    input_api.canned_checks.CheckVPythonSpec(input_api, output_api)))
 
   if any('PRESUBMIT.py' == f.LocalPath() for f in input_api.AffectedFiles()):
     results.extend(input_api.canned_checks.RunUnitTestsInDirectory(