Lines Matching full:machine

43 def _get_host_arguments(machine):  argument
53 @param machine: machine dict
59 machine)
87 if isinstance(machine, dict) and 'host_info_store' in machine:
88 host_args['host_info_store'] = machine['host_info_store']
143 def create_host(machine, host_class=None, connectivity_class=None, **args): argument
149 @param machine: A dict representing the device under test or a String
151 If it is a machine dict, the 'hostname' key is required.
164 detected_args = _get_host_arguments(machine)
185 # create a custom host class for this machine and return an instance of it
198 def create_testbed(machine, **kwargs): argument
201 @param machine: A dict representing the test bed under test or a String
204 If it is a machine dict, the 'hostname' key is required.
211 detected_args = _get_host_arguments(machine)
217 def create_target_machine(machine, **kwargs): argument
218 """Create the target machine which could be a testbed or a *Host.
220 @param machine: A dict representing the test bed under test or a String
223 If it is a machine dict, the 'hostname' key is required.
228 @returns: The target machine to be used for verify/repair.
230 # For Brillo/Android devices connected to moblab, the `machine` name is
236 hostname = machine['hostname'] if isinstance(machine, dict) else machine
241 if isinstance(machine, dict):
242 machine['hostname'] = hostname
244 machine = hostname
245 logging.debug('Hostname of machine is converted to %s for the test to '
250 if server_utils.machine_is_testbed(machine):
251 return create_testbed(machine, **kwargs)
252 return create_host(machine, **kwargs)