summaryrefslogtreecommitdiff
path: root/cbuildbot/binhost.py
diff options
context:
space:
mode:
authorDavid James <davidjames@google.com>2015-03-24 14:19:37 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-03-25 16:57:33 +0000
commita45ab4d0c23a11a8540b37026b105212510faec1 (patch)
tree0055ef8e81b65215a8ecf3a2e8e3e7ad8cc1689a /cbuildbot/binhost.py
parent45bf58b5b6c87a1a074ee3f7b8743eae1fcfae8f (diff)
downloadchromite-a45ab4d0c23a11a8540b37026b105212510faec1.tar.gz
binhost_test: Only test important configs.
BUG=chromium:443254 TEST=Run it locally. Change-Id: Iff8e4c94899117976ab6a3a5e854df893d44520c Reviewed-on: https://chromium-review.googlesource.com/262010 Reviewed-by: David James <davidjames@chromium.org> Tested-by: David James <davidjames@chromium.org> Commit-Queue: David James <davidjames@chromium.org>
Diffstat (limited to 'cbuildbot/binhost.py')
-rw-r--r--cbuildbot/binhost.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/cbuildbot/binhost.py b/cbuildbot/binhost.py
index e5c0d7e03..f9976a050 100644
--- a/cbuildbot/binhost.py
+++ b/cbuildbot/binhost.py
@@ -48,12 +48,13 @@ def GetBoardKey(config, board=None):
return BoardKey(board, config.useflags)
-def GetAllBoardKeys():
+def GetAllImportantBoardKeys():
"""Get a list of all board keys used in a top-level config."""
boards = set()
for config in cbuildbot_config.config.values():
- for board in config.boards:
- boards.add(GetBoardKey(config, board))
+ if config.important:
+ for board in config.boards:
+ boards.add(GetBoardKey(config, board))
return boards
@@ -186,7 +187,7 @@ def GetChromeUseFlags(board, extra_useflags):
Use flags that are disabled are not listed.
"""
assert cros_build_lib.IsInsideChroot()
- assert os.path.exists('/build/%s' % board)
+ assert os.path.exists('/build/%s' % board), 'Board %s not set up' % board
extra_env = {'USE': ' '.join(extra_useflags)}
cmd = ['equery-%s' % board, 'uses', constants.CHROME_CP]
chrome_useflags = cros_build_lib.RunCommand(