Lines Matching +full:deploy +full:- +full:name
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.
8 commands, and for the new `deploy` command.
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
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`
42 `web`: Server name (or URL) for the AFE RPC service.
47 USB image. The build is in a form like 'R66-10447.0.0'.
48 `hostname_file`: Name of a file in CSV format with information
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
81 def add_boolean_argument(self, name, default, **kwargs): argument
84 This add a pair of options, named `--<name>` and `--no<name>`.
86 'store_false', respectively, with the destination `<name>`.
89 value for destination `<name>` is given by `default`.
94 @param name The name of the boolean argument, used to
96 name.
101 exclusion_group.add_argument('--%s' % name, action='store_true',
102 dest=name, **kwargs)
103 exclusion_group.add_argument('--no%s' % name, action='store_false',
104 dest=name, **kwargs)
105 self.set_defaults(**{name: bool(default)})
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',
119 parser.add_argument('-f', '--hostname_file',
134 def _add_subcommand(subcommands, name, upload_default, description): argument
135 """Add a subcommand plus standard arguments to the `deploy` command.
139 standard arguments required by all `deploy` subcommands.
143 @param name Name of the new subcommand.
144 @param upload_default Default setting for the `--upload` option.
148 subparser = subcommands.add_parser(name, description=description)
151 subparser.add_argument('-b', '--board', metavar='BOARD',
153 subparser.add_argument('-m', '--model', metavar='MODEL',
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
260 argv[0] is assumed to be the command name.