• Home
  • Raw
  • Download

Lines Matching refs:arguments

249 def _validate_arguments(arguments):  argument
265 if arguments.hostnames and arguments.hostname_file:
270 if (arguments.hostname_file and
271 not _is_hostname_file_valid(arguments.hostname_file)):
275 if (not arguments.hostnames and not arguments.hostname_file and
276 (arguments.board or arguments.build)):
280 if arguments.board is not None:
281 if not _validate_board(arguments.board):
283 if (arguments.build is not None and
284 not _validate_build(arguments.board, arguments.build)):
422 def _read_arguments(input, arguments): argument
438 arguments.board = _read_board(input, arguments.board)
439 arguments.build = _read_build(input, arguments.board)
440 arguments.model = _read_model(input, arguments.model)
442 arguments.board, arguments.build)
444 arguments.hostnames = _read_hostnames(input)
477 def _get_upload_basename(arguments): argument
486 return '{time}-{board}'.format(time=timestamp, board=arguments.board)
511 def validate_arguments(arguments): argument
526 if not arguments.board or not arguments.model:
527 _read_arguments(sys.stdin, arguments)
528 elif not _validate_arguments(arguments):
531 arguments.upload_basename = _get_upload_basename(arguments)
532 if not arguments.logdir:
533 arguments.logdir = os.path.join(os.environ['HOME'],
535 arguments.upload_basename)
536 os.makedirs(arguments.logdir)
537 elif not os.path.isdir(arguments.logdir):
538 os.mkdir(arguments.logdir)
540 if arguments.hostname_file:
542 hostname_file_info_list = _parse_hostname_file(arguments.hostname_file)
543 arguments.hostnames = [host_info.hostname
545 arguments.host_info_list = hostname_file_info_list
547 arguments.host_info_list = []
548 return arguments