• Home
  • Raw
  • Download

Lines Matching full:arguments

135 def _get_upload_log_path(arguments):  argument
138 name=arguments.upload_basename)
179 def _update_build(afe, report_log, arguments): argument
337 def _get_afe_host(afe, hostname, host_attrs, arguments): argument
350 @param arguments Command line arguments with options.
372 if host_attrs and not arguments.labstation:
379 if not arguments.labstation:
384 _ensure_label_in_afe(afe_host, 'board', arguments.board)
385 _ensure_label_in_afe(afe_host, 'model', arguments.model)
418 def _create_host_for_installation(host, arguments): argument
426 @param arguments: Parsed commandline arguments for this script.
433 return preparedut.create_cros_host(host.hostname, arguments.board,
434 arguments.model, s_host, s_port,
435 s_serial, arguments.logdir)
439 def _install_test_image(host, arguments): argument
446 @param arguments Command line arguments with options.
450 if arguments.dry_run:
452 if arguments.stageusb:
458 if arguments.install_test_image:
464 if arguments.install_firmware:
466 if arguments.using_servo:
475 'Flashing firmware using servo' if arguments.using_servo
478 if arguments.reinstall_test_image:
484 if arguments.install_test_image and arguments.install_firmware:
496 def _install_and_update_afe(afe, hostname, host_attrs, arguments): argument
511 @param arguments Command line arguments with options.
514 arguments)
518 if arguments.labstation:
521 with _create_host_for_installation(host, arguments) as target_host:
522 _install_test_image(target_host, arguments)
525 if ((arguments.install_test_image or arguments.reinstall_test_image)
526 and not arguments.dry_run):
538 if version and not arguments.dry_run:
553 def _install_dut(arguments, host_attr_dict, hostname): argument
556 @param arguments Command line arguments with options.
572 logpath = os.path.join(arguments.logdir, hostname + '.log')
577 afe = frontend.AFE(server=arguments.web)
581 arguments)
614 def _report_results(afe, report_log, hostnames, results, arguments): argument
627 @param arguments Command line arguments with options.
647 if arguments.labstation:
822 def install_duts(arguments): argument
831 @param arguments Command line arguments with options, as
834 arguments = cmdvalidate.validate_arguments(arguments)
835 if arguments is None:
837 sys.stderr.write('Installation output logs in %s\n' % arguments.logdir)
848 logging_file_path = os.path.join(arguments.logdir, 'debug.log')
852 report_log_path = os.path.join(arguments.logdir, 'report.log')
855 afe = frontend.AFE(server=arguments.web)
856 if arguments.dry_run:
859 host_attr_dict = _get_host_attributes(arguments.host_info_list, afe)
860 install_pool = multiprocessing.Pool(len(arguments.hostnames))
861 install_function = functools.partial(_install_dut, arguments,
863 results_list = install_pool.map(install_function, arguments.hostnames)
864 _report_results(afe, report_log, arguments.hostnames, results_list,
865 arguments)
867 if arguments.upload:
869 gspath = _get_upload_log_path(arguments)
871 _upload_logs(arguments.logdir, gspath)
873 upload_failure_log_path = os.path.join(arguments.logdir,