Lines Matching full:machine
51 def _get_host_arguments(machine): argument
61 @param machine: machine dict
66 hostname, afe_host = server_utils.get_host_info_from_machine(machine)
67 connection_pool = server_utils.get_connection_pool_from_machine(machine)
68 host_info_store = host_info.get_store_from_machine(machine)
151 def create_host(machine, host_class=None, connectivity_class=None, **args): argument
157 @param machine: A dict representing the device under test or a String
159 If it is a machine dict, the 'hostname' key is required.
172 detected_args = _get_host_arguments(machine)
193 # create a custom host class for this machine and return an instance of it
206 def create_testbed(machine, **kwargs): argument
209 @param machine: A dict representing the test bed under test or a String
212 If it is a machine dict, the 'hostname' key is required.
219 detected_args = _get_host_arguments(machine)
225 def create_target_machine(machine, **kwargs): argument
226 """Create the target machine which could be a testbed or a *Host.
228 @param machine: A dict representing the test bed under test or a String
231 If it is a machine dict, the 'hostname' key is required.
236 @returns: The target machine to be used for verify/repair.
238 # For Brillo/Android devices connected to moblab, the `machine` name is
244 hostname = machine['hostname'] if isinstance(machine, dict) else machine
249 if isinstance(machine, dict):
250 machine['hostname'] = hostname
252 machine = hostname
253 logging.debug('Hostname of machine is converted to %s for the test to '
258 if server_utils.machine_is_testbed(machine):
259 return create_testbed(machine, **kwargs)
260 return create_host(machine, **kwargs)