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

Unified Diff: PRESUBMIT.py

Issue 2187713002: Only run recipe simulation tests if infra/ changes. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 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 | no next file » | 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 a3af9e4445b46bc28c05c97698b93d8b28929d42..e0e01fb30fd7b3918b1c184a5a57be4c9072704b 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -172,6 +172,10 @@ def _ToolFlags(input_api, output_api):
def _RecipeSimulationTest(input_api, output_api):
"""Run the recipe simulation test."""
results = []
+ if not any(f.LocalPath().startswith('infra')
+ for f in input_api.AffectedFiles()):
+ return results
+
recipes_py = os.path.join('infra', 'bots', 'recipes.py')
cmd = ['python', recipes_py, 'simulation_test']
try:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698