diff options
author | Aviv Keshet <akeshet@chromium.org> | 2015-02-06 16:48:55 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-02-11 23:05:14 +0000 |
commit | 5cc788c5c031341aa9925924ceb65bad680e1b35 (patch) | |
tree | 80bc2cddca355834af4611eef49cc26a2235f8c0 /cbuildbot/cbuildbot_config_unittest.py | |
parent | 424a991b0d912ab74fb50d263638eb7bd0adf9a4 (diff) | |
download | chromite-5cc788c5c031341aa9925924ceb65bad680e1b35.tar.gz |
cbuildbot_config: add buildbot_waterfall_name field
This field will hint to buildbot what builder name to use on the
waterfall.
BUG=chromium:456200
TEST=New unit test
Change-Id: I4b978edec42eef24c63a244bddd8f1a99ef14f3e
Reviewed-on: https://chromium-review.googlesource.com/247380
Trybot-Ready: Aviv Keshet <akeshet@chromium.org>
Tested-by: Aviv Keshet <akeshet@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Aviv Keshet <akeshet@chromium.org>
Diffstat (limited to 'cbuildbot/cbuildbot_config_unittest.py')
-rw-r--r-- | cbuildbot/cbuildbot_config_unittest.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cbuildbot/cbuildbot_config_unittest.py b/cbuildbot/cbuildbot_config_unittest.py index fe898b610..a47ed0c7c 100644 --- a/cbuildbot/cbuildbot_config_unittest.py +++ b/cbuildbot/cbuildbot_config_unittest.py @@ -499,6 +499,16 @@ class CBuildBotTest(cros_test_lib.TestCase): board)) prebuilt_slave_boards[board] = slave['name'] + def testNoDuplicateWaterfallNames(self): + """Tests that no two configs specify same waterfall name.""" + waterfall_names = set() + for config in cbuildbot_config.config.values(): + wn = config['buildbot_waterfall_name'] + if wn is not None: + self.assertNotIn(wn, waterfall_names, + 'Duplicate waterfall name %s.' % wn) + waterfall_names.add(wn) + def testCantBeBothTypesOfAFDO(self): """Using afdo_generate and afdo_use together doesn't work.""" for config in cbuildbot_config.config.values(): |