diff options
author | Don Garrett <dgarrett@google.com> | 2015-05-01 18:19:43 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-05-05 03:36:10 +0000 |
commit | 6050dd8282829b469116bef244b2937ea087be3f (patch) | |
tree | 37593f20e30e6e9f4cfb2cf4d5ae828b370b0962 /cbuildbot/cbuildbot_run_unittest.py | |
parent | 60c9449f5d5cf1750c8351c61f495624d095d382 (diff) | |
download | chromite-6050dd8282829b469116bef244b2937ea087be3f.tar.gz |
cbuidlbot_config: Rename _config -> BuildConfig.
The _config class is used in a number of unittests so officially
export it. Also makes it generally easier to search for.
TEST=cbuildbot/run_tests && cros lint *.py
BUG=chromium:483566
Change-Id: Ia5a921ff53ab3397927e19cd33de69970f88f1c9
Reviewed-on: https://chromium-review.googlesource.com/268915
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Tested-by: Don Garrett <dgarrett@chromium.org>
Commit-Queue: Don Garrett <dgarrett@chromium.org>
Diffstat (limited to 'cbuildbot/cbuildbot_run_unittest.py')
-rw-r--r-- | cbuildbot/cbuildbot_run_unittest.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/cbuildbot/cbuildbot_run_unittest.py b/cbuildbot/cbuildbot_run_unittest.py index 2101ee869..1cddbe2e7 100644 --- a/cbuildbot/cbuildbot_run_unittest.py +++ b/cbuildbot/cbuildbot_run_unittest.py @@ -39,16 +39,17 @@ DEFAULT_OPTIONS = cros_test_lib.EasyAttr( debug=False, postsync_patch=True, ) -DEFAULT_CONFIG = cbuildbot_config._config( +DEFAULT_CONFIG = cbuildbot_config.BuildConfig( name=DEFAULT_BOT_NAME, master=True, boards=[DEFAULT_BOARD], postsync_patch=True, - child_configs=[cbuildbot_config._config(name='foo', postsync_patch=False, - boards=[]), - cbuildbot_config._config(name='bar', postsync_patch=False, - boards=[]), - ], + child_configs=[ + cbuildbot_config.BuildConfig( + name='foo', postsync_patch=False, boards=[]), + cbuildbot_config.BuildConfig( + name='bar', postsync_patch=False, boards=[]), + ], ) DEFAULT_VERSION = '6543.2.1' @@ -65,7 +66,7 @@ def _ExtendDefaultConfig(**kwargs): """Extend DEFAULT_CONFIG with keys/values in kwargs.""" config_kwargs = DEFAULT_CONFIG.copy() config_kwargs.update(kwargs) - return cbuildbot_config._config(**config_kwargs) + return cbuildbot_config.BuildConfig(**config_kwargs) class ExceptionsTest(cros_test_lib.TestCase): |