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

Unified Diff: appengine/findit/handlers/config.py

Issue 1898493002: [Findit] Adding support for disabling test try jobs for given master/builder (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 4 years, 8 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
Index: appengine/findit/handlers/config.py
diff --git a/appengine/findit/handlers/config.py b/appengine/findit/handlers/config.py
index 59b8191482f868db986bb86e1cadc96ae60501e8..a02eb100c71726655f8f6d017ed88e7bc59d1799 100644
--- a/appengine/findit/handlers/config.py
+++ b/appengine/findit/handlers/config.py
@@ -141,6 +141,9 @@ def _ValidateTrybotMapping(builders_to_trybots):
if (trybot_config.has_key('strict_regex') and
not isinstance(trybot_config['strict_regex'], bool)):
return False
+ if (trybot_config.has_key('enable_tests') and
stgao 2016/04/16 01:04:04 Is seems we only want to set this field to disable
lijeffrey 2016/04/16 02:57:27 Done.
+ not isinstance(trybot_config['enable_tests'], bool)):
+ return False
return True
« no previous file with comments | « no previous file | appengine/findit/handlers/test/config_test.py » ('j') | appengine/findit/waterfall/try_job_util.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698