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

Unified Diff: appengine/findit/handlers/test/config_test.py

Issue 1799313002: [Findit] Collect failed output nodes of compile and link failures by strict regex (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Support Android besides Mac/Linux/CrOS Created 4 years, 9 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 | « appengine/findit/handlers/config.py ('k') | appengine/findit/waterfall/extractors.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/handlers/test/config_test.py
diff --git a/appengine/findit/handlers/test/config_test.py b/appengine/findit/handlers/test/config_test.py
index a4b862907d40e47e793f853ede72d14ca76923f5..bfc90f6483b02b080c0af66f5b62498df428d34b 100644
--- a/appengine/findit/handlers/test/config_test.py
+++ b/appengine/findit/handlers/test/config_test.py
@@ -391,6 +391,24 @@ class ConfigTest(testing.AppengineTestCase):
}
}
}))
+ self.assertTrue(config._ValidateTrybotMapping({
+ 'master1': {
+ 'builder1': {
+ 'mastername': 'tryserver1',
+ 'buildername': 'trybot1',
+ 'strict_regex': True,
+ }
+ }
+ }))
+ self.assertFalse(config._ValidateTrybotMapping({
+ 'master1': {
+ 'builder1': {
+ 'mastername': 'tryserver1',
+ 'buildername': 'trybot1',
+ 'strict_regex': 'a',
+ }
+ }
+ }))
self.assertFalse(config._ValidateTrybotMapping(['a']))
self.assertFalse(config._ValidateTrybotMapping({'a': ['b']}))
self.assertFalse(config._ValidateTrybotMapping({'a': {'b': ['1']}}))
« no previous file with comments | « appengine/findit/handlers/config.py ('k') | appengine/findit/waterfall/extractors.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698