• Home
  • Raw
  • Download

Lines Matching +full:build +full:- +full:and +full:- +full:deploy

2 # Use of this source code is governed by a BSD-style license that can be
5 """Command-line parsing for the DUT deployment tool.
7 This contains parsing for the legacy `repair_test` and `deployment_test`
8 commands, and for the new `deploy` command.
16 * Install firmware: Boot the DUT from the USB stick, and run
17 `chromeos-firmwareupdate` to install dev-signed RO and RW firmware.
18 The DUT must begin in dev-mode, with hardware write-protect
22 stick, and run `chromeos-install` to install the OS.
24 The new `deploy` command chooses particular combinations of the steps
25 above based on a subcommand and options:
26 `deploy servo`: Only stage the USB image.
27 `deploy firmware`: Install both the firmware and the test image,
29 `deploy test-image`: Install the test image. Optionally, first
31 `deploy repair`: Equivalent to `deploy test-image`, except that
35 two legacy commands) and `parse_command()` (for the new `deploy`
45 `build`: When provided, the repair image assigned to the board for
47 USB image. The build is in a form like 'R66-10447.0.0'.
49 about the hosts and servos to be deployed/repaired.
57 side-effect. This option implicitly overrides and disables all
67 `labstation`: when true, deploy labstation instead of DUT.
70 default, except for `deploy repair` and `repair_test`. The values for
84 This add a pair of options, named `--<name>` and `--no<name>`.
85 The actions of the two options are 'store_true' and
92 `ArgumentParser.add_argument()`, except for `action` and `dest`.
95 construct the option names and destination field
101 exclusion_group.add_argument('--%s' % name, action='store_true',
103 exclusion_group.add_argument('--no%s' % name, action='store_false',
110 # so default for --web is `None`.
111 parser.add_argument('-w', '--web', metavar='SERVER', default=None,
113 parser.add_argument('-d', '--dir', dest='logdir',
115 parser.add_argument('-n', '--dry-run', action='store_true',
117 parser.add_argument('-i', '--build',
118 help='select stable test build version')
119 parser.add_argument('-f', '--hostname_file',
120 help='CSV file that contains a list of hostnames and '
135 """Add a subcommand plus standard arguments to the `deploy` command.
139 standard arguments required by all `deploy` subcommands.
144 @param upload_default Default setting for the `--upload` option.
151 subparser.add_argument('-b', '--board', metavar='BOARD',
153 subparser.add_argument('-m', '--model', metavar='MODEL',
168 'Test servo and install the image on the USB stick')
193 'Install firmware and initial test image on DUT')
196 '--using-servo', action='store_true',
205 """Add the `test-image` subcommand to `subcommands`.
211 subcommands, 'test-image', True,
228 'Re-install test image on DUT from servo')
244 'Deploy a labstation to autotest, the labstation must be already'
253 """Parse arguments for the `deploy` command.
255 Create an argument parser for the `deploy` command and its
256 subcommands. Then parse the command line arguments, and return an
266 description='DUT deployment and repair operations')