Home | History | Annotate | Download | only in hosts

Lines Matching refs:host

27 def _parse_lsb_output(host):
30 @param host: Host that the command will be executed against
34 run_method=host.run)
45 def generate_labels(self, host):
51 for label in host._afe_host.labels:
55 return [_parse_lsb_output(host).board]
63 def generate_labels(self, host):
66 for label in host._afe_host.labels:
70 lsb_output = _parse_lsb_output(host)
75 result = host.run(command=test_label_cmd, ignore_status=True)
80 result = host.run(command=mosys_cmd, ignore_status=True)
105 def exists(self, host):
111 result = host.run(search_cmd, stdout_tee=None, stderr_tee=None,
122 def exists(self, host):
123 result = host.run('test -d /sys/class/bluetooth/hci0',
130 """Label to determine the type of EC on this host."""
134 def exists(self, host):
150 ecinfo = host.run(command=cmd, ignore_status=True)
163 """Determine the type of accelerometers on this host."""
167 def exists(self, host):
169 rv = host.run('which ectool', ignore_status=True)
175 rv = host.run('ectool motionsense', ignore_status=True)
182 active = host.run('ectool motionsense active').stdout.split('\n')
192 """Determine if a Chameleon is connected to this host."""
196 def exists(self, host):
197 return host._chameleon_host is not None
205 def exists(self, host):
206 return host._chameleon_host is not None
209 def generate_labels(self, host):
210 return [host.chameleon.get_label()]
225 def exists(self, host):
226 return host._chameleon_host is not None
229 def generate_labels(self, host):
230 bt_hid_device = host.chameleon.get_bluetooh_hid_mouse()
239 def exists(self, host):
240 nodes_info = host.run(command=cras_utils.get_cras_nodes_cmd(),
252 Labels representing this host's power supply.
266 def exists(self, host):
267 self.psu_cmd_result = host.run(command='mosys psu type',
272 def generate_labels(self, host):
288 Labels representing this host's internal device type:
303 def exists(self, host):
309 rootdev = host.run(command=rootdev_cmd, ignore_status=True)
325 type = host.run(command=type_cmd, ignore_status=True)
340 link = host.run(command=link_cmd, ignore_status=True)
351 rotate = host.run(command=rotate_cmd, ignore_status=True)
370 def generate_labels(self, host):
379 def exists(self, host):
381 Check if the servo label should apply to the host or not.
383 @returns True if a servo host is detected, False otherwise.
386 servo_args, _ = servo_host._get_standard_servo_args(host)
414 def generate_labels(self, host):
415 result = host.run('/usr/local/bin/avtest_label_detect',
421 """Label indicates if host has ARC support."""
426 def exists(self, host):
427 return 0 == host.run(
438 def _get_cts_abis(self, host):
444 return cts_abis.get(host.get_cpu_arch(), [])
446 def generate_labels(self, host):
447 return ['cts_abi_' + abi for abi in self._get_cts_abis(host)]
456 def _should_cover(self, host, nth_build):
458 'cat /etc/lsb-release', run_method=host.run)
482 def generate_labels(self, host):
485 if self._should_cover(host, n):
491 """Label indicates if host supports video glitch detection tests."""
495 def exists(self, host):
496 board = host.get_board().replace(ds_constants.BOARD_PREFIX, '')
506 def generate_labels(self, host):
511 return host.run(cmd).stdout
514 return host.run('cat %s' % remote_path).stdout
540 def exists(self, host):
541 board = host.get_board().replace(ds_constants.BOARD_PREFIX, '')
556 def generate_labels(self, host):
558 hwid = host.run_output('crossystem hwid').strip()
598 def exists(self, host):
599 return host.run('which hammerd', ignore_status=True).exit_status == 0