summaryrefslogtreecommitdiff
path: root/cli/cros/cros_deploy.py
diff options
context:
space:
mode:
authorBertrand SIMONNET <bsimonnet@chromium.org>2015-04-30 17:46:28 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-05-04 18:11:55 +0000
commit60c9449f5d5cf1750c8351c61f495624d095d382 (patch)
tree2267852f7b0dd9c0a1da02a7cf2fb176d606288b /cli/cros/cros_deploy.py
parent0f6029f073e0f641163d20a7208b02331751691e (diff)
downloadchromite-60c9449f5d5cf1750c8351c61f495624d095d382.tar.gz
brillo deploy: Support --blueprint.
This CL adds support for --blueprint to brillo deploy. BUG=brillo:946 TEST=unittests. TEST=`cros deploy --board=gizmo localhost:9222 metrics` works. TEST=`cros deploy --brick bricks/foo device metrics` works. CQ-DEPEND=CL:268399 CQ-DEPEND=CL:268666 Change-Id: Ia6e43a3efd7edbf53d5b2bbb509ddeb5557fee9e Reviewed-on: https://chromium-review.googlesource.com/268641 Tested-by: Bertrand Simonnet <bsimonnet@chromium.org> Reviewed-by: Bertrand Simonnet <bsimonnet@chromium.org> Commit-Queue: Bertrand Simonnet <bsimonnet@chromium.org>
Diffstat (limited to 'cli/cros/cros_deploy.py')
-rw-r--r--cli/cros/cros_deploy.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/cros/cros_deploy.py b/cli/cros/cros_deploy.py
index 424280b92..7f952709c 100644
--- a/cli/cros/cros_deploy.py
+++ b/cli/cros/cros_deploy.py
@@ -60,6 +60,9 @@ For more information of cros build usage:
'--brick', type='brick_path',
help='The brick to use. Will be detected from CWD if possible and take '
'precedence over the detected board.')
+ target.add_argument(
+ '--blueprint',
+ help='The blueprint to use. Takes precedence over board and brick.')
parser.add_argument(
'--no-strip', dest='strip', action='store_false', default=True,
help='Do not run strip_package to filter out preset paths in the '
@@ -117,6 +120,7 @@ For more information of cros build usage:
self.options.packages,
board=self.options.board,
brick_name=self.options.brick or self.curr_brick_locator,
+ blueprint=self.options.blueprint,
emerge=self.options.emerge,
update=self.options.update,
deep=self.options.deep,