Lines Matching full:board
13 * (required) Board of the DUTs to be deployed.
16 repair image for the board to be deployed. If omitted, the
19 The interactive dialog is invoked if the board and hostnames
40 # one build. The template is to be filled in with a board
87 def _build_path_exists(board, buildpath):
91 release builds for `board`. The path may be one of the "LATEST"
98 @param board Board to be tested.
106 _BUILD_URI_FORMAT % (board, buildpath)
116 def _normalize_build_name(board, build):
123 for the board.
138 @param board Board to be tested.
151 _BUILD_URI_FORMAT % (board, fmt % build)
157 elif _build_path_exists(board, '%s/image.zip' % build):
164 def _validate_board(board):
165 """Return whether a given board exists in Google storage.
167 For purposes of this function, a board exists if it has a
175 @param board The board to be tested for existence.
176 @return Return a true value iff the board exists.
178 # In this case, the board doesn't exist, but we don't want
180 if board is None:
183 if _build_path_exists(board, 'LATEST-master'):
186 sys.stderr.write('Board %s doesn\'t exist.\n' % board)
190 def _validate_build(board, build):
198 @param board The board to be tested for a build
202 @return If the given board+build exists, return its canonical
206 canonical_build = _normalize_build_name(board, build)
210 (build, board))
278 (arguments.board or arguments.build)):
280 'DUT hostnames are required with board or build.\n')
282 if arguments.board is not None:
283 if not _validate_board(arguments.board):
286 not _validate_build(arguments.board, arguments.build)):
304 """Read a valid board name from user input.
306 Prompt the user to supply a board name, and read one line. If
307 the line names a valid board, return the board name. If the
315 board.
318 @return Returns `default_board` or a validated board name.
321 board_prompt = 'board name [%s]' % default_board
323 board_prompt = 'board name'
328 sys.stderr.write('Checking for valid board.\n')
334 def _read_build(input, board):
338 If the line names an existing version for the given board,
343 @param board Board for the build.
353 build = _validate_build(board, build)
393 The user is prompted in turn for a board, a build, and
406 arguments.board = _read_board(input, arguments.board)
407 arguments.build = _read_build(input, arguments.board)
409 arguments.board, arguments.build)
420 return '{time}-{board}'.format(
422 board=arguments.board)
481 parser.add_argument('board', nargs='?', metavar='BOARD',
482 help='board for DUTs to be installed')
515 # 0: board
574 if arguments.board is None: