Home
last modified time | relevance | path

Searched refs:_host (Results 1 – 25 of 78) sorted by relevance

1234

/external/autotest/server/cros/power/
Dpower_dashboard.py25 self._host = host
40 board = self._host.get_board().replace('board:', '')
41 platform = self._host.get_platform_from_mosys()
46 if self._host.has_hammer():
52 'hw': self._host.get_hardware_revision(),
53 'milestone': self._host.get_chromeos_release_milestone(),
54 'os': self._host.get_release_version(),
55 'channel': self._host.get_channel(),
56 'firmware': self._host.get_firmware_version(),
57 'ec': self._host.get_ec_version(),
[all …]
/external/autotest/server/site_tests/power_USBHotplugInSuspend/
Dpower_USBHotplugInSuspend.py27 self._host.servo.set('prtctl4_pwren', 'on')
29 self._host.servo.set('prtctl4_pwren', 'off')
30 time.sleep(self._host.servo.USB_POWEROFF_DELAY)
39 lines = self._host.run('lsusb').stdout.strip().split('\n')
51 client_at = autotest.Autotest(self._host)
72 if not self._host.ping_wait_down(_SUSPEND_TIMEOUT):
80 if not self._host.wait_up(self._host.RESUME_TIMEOUT):
102 self._host.servo.switch_usbkey(self._init_usbkey_direction)
110 self._host = host
111 self._init_usbkey_power = self._host.servo.get('prtctl4_pwren')
[all …]
/external/autotest/server/cros/
Ddebugd_dev_tools.py192 self._host = host
246 state = query_dev_tools_state(self._host)
288 self._host.run('mkdir -p "%s"' % os.path.dirname(temp_path))
289 self._host.run('cp -r "%s" "%s"' % (path, temp_path),
307 self._host.run('rm -rf "%s"' % path)
308 self._host.run('cp -r "%s" "%s"' % (self._get_temp_path(path),
349 _send_debugd_command(self._host, 'RemoveRootfsVerification')
350 self._host.reboot()
378 platform = self._host.get_platform().lower()
382 _send_debugd_command(self._host, 'EnableBootFromUsb')
[all …]
Dmoblab_test.py46 self._host = host
49 self._host.verify_moblab_services(
51 self._host.wait_afe_up()
52 self._host.install_boto_file(boto_path)
54 self._host.find_and_add_duts()
55 self._host.verify_duts()
56 self._host.verify_special_tasks_complete()
82 self._host.run('sed -i /image_storage_server/d %s' %
84 self._host.run("sed -i '/\[CROS\]/ a\image_storage_server: "
Dremote_command.py16 self._host = host
25 self._result = self._host.run(self._cmd, ignore_status=True)
60 self._host = host
61 self._thread = _HelperThread(self._host, cmd)
83 self._host.run("pkill %s %s" % (signal_arg, self._command_name),
Ddark_resume_utils.py36 self._host = host
68 self._host.run('umount %s' % POWER_DIR)
71 self._host.run('stop powerd; start powerd')
122 client_at = autotest.Autotest(self._host)
125 proxy = self._host.rpc_server_tracker.xmlrpc_connect(
Dtelemetry_runner.py105 self._host = host
124 info = self._host.host_info_store.get()
127 self._host.host_port)
129 'Failed to grab build for host %s.' % self._host.host_port)
134 info.build, hostname=self._host.hostname)
202 self._host.ssh_command(
217 '--remote=%s' % self._host.host_port,
249 self._host.make_ssh_options(
251 if not self._host.is_default_port:
252 scp_cmd.append('-P %d' % self._host.port)
[all …]
/external/autotest/server/cros/update_engine/
Dchromiumos_test_platform.py30 self._host = host
47 _, pid = ds.auto_update(host_name=self._host.hostname,
62 client_at = autotest.Autotest(self._host)
98 self._host.reboot()
114 return self._host.run('rootdev -s').stdout.strip()
124 self._host.send_file(path, self._UPDATE_ENGINE_PERF_PATH)
132 self._host.get_file(path, resultdir)
133 self._host.run('rm %s' % path)
136 self._host.run('rm %s' % script)
152 return self._host.run_output(
[all …]
Dupdate_engine_test.py80 self._host = host
85 self._run = self._host.run if self._host else None
86 self._get_file = self._host.get_file if self._host else None
93 if self._host:
94 self._host.get_file(self._UPDATE_ENGINE_LOG, self.resultsdir)
387 test_conf['target_payload_uri'], self._host.hostname)
452 self._host = self._hosts[0]
453 if self._host is None:
455 info = self._host.host_info_store.get()
456 return info.attributes.get(self._host.job_repo_url_attribute, '')
[all …]
/external/autotest/server/site_tests/rlz_CheckPing/
Drlz_CheckPing.py25 self._host.run('cros_config / brand-code')
47 vpd_utils.vpd_delete(host=self._host, key=self._DATE_VPD)
49 vpd_utils.vpd_set(host=self._host, vpd_dict=to_set, dump=True,
74 vpd_utils.vpd_get(host=self._host, key=self._PING_VPD))
75 check_date = vpd_utils.vpd_get(host=self._host,
117 self._host = host
118 if 'veyron_rialto' in self._host.get_board():
124 tpm_utils.ClearTPMOwnerRequest(self._host)
129 self._host.reboot()
142 client_at = autotest.Autotest(self._host)
[all …]
/external/autotest/server/site_tests/autoupdate_Rollback/
Dautoupdate_Rollback.py23 self._host.run('echo car > %s' % STATEFUL_MARKER_FILE)
24 self._host.run("echo '%s' > %s" % (POWERWASH_COMMAND,
26 self._host.reboot()
27 marker = self._host.run('[ -e %s ]' % STATEFUL_MARKER_FILE,
45 self._host.run('rm %s %s' %
50 self._host.run('restart update-engine', ignore_status=True)
65 updater = autoupdater.ChromiumOSUpdater(update_url, self._host)
73 self._host.reboot()
85 self._host.reboot()
/external/autotest/server/cros/tradefed/
Dtradefed_chromelogin.py20 if hard_reboot and self._host.servo:
32 self._host = host
44 cmd = autotest.Autotest.get_installed_autodir(self._host)
65 self._host.run(
83 autotest.Autotest(self._host).run_timed_test(
91 self._host.run(
137 self._host.run(script, ignore_status=False, verbose=False, timeout=120)
142 logging.info('Powering OFF the DUT: %s', self._host)
143 self._host.servo.get_power_state_controller().power_off()
144 logging.info('Powering ON the DUT: %s', self._host)
[all …]
/external/autotest/server/site_tests/power_WakeSources/
Dpower_WakeSources.py92 return self._host.run(
97 self._host.servo.set_nocheck('init_usb_keyboard', 'on')
153 self._host.servo.set_nocheck('init_usb_keyboard', 'on')
157 self._host):
159 self._host):
202 if not self._host.is_up_fast():
209 if not self._host.is_up():
236 if not self._host.is_up():
256 self._host.servo.power_short_press()
258 self._host.servo.lid_close()
[all …]
/external/autotest/server/
Dsite_gtest_runner.py20 self._host = None
41 self._host = hosts.create_host(machine)
44 client_autotest = autotest.Autotest(self._host)
49 logging.info('%s %s Running %s', self._host,
113 self._host.record('START', failed_test, failed_test)
114 self._host.record('INFO', failed_test, 'FAILED: ' + failed_test)
115 self._host.record('END FAIL', failed_test, failed_test, message)
143 self._host.record('START', None, passed_test)
144 self._host.record('INFO', None, 'PASSED: ' + passed_test)
145 self._host.record('END GOOD', None, passed_test)
/external/autotest/server/site_tests/platform_Powerwash/
Dplatform_Powerwash.py29 self._host = host
35 self._host.run('echo car > %s' % STATEFUL_MARKER_FILE)
39 self._host.reboot()
43 marker = self._host.run('[ -e %s ]' % STATEFUL_MARKER_FILE,
52 logging.debug('Powerwash logs: %r', self._host.run(
73 self._host.run("echo '%s' > %s" % (command, POWERWASH_MARKER_FILE))
78 count = self._host.run('test -e %s && cat %s || true' %
/external/autotest/server/cros/network/
Dpacket_capturer.py220 self._host = host
242 self._host.run("%s dev %s del" % (self._cmd_iw, device))
245 self._host.run("%s link set %s down" % (self._cmd_ip, device))
246 self._host.run("%s dev %s del" % (self._cmd_iw, device))
268 self._host.run('%s dev %s del' % (self._cmd_iw, monitor_device),
270 result = self._host.run('%s phy %s interface add %s type monitor' %
310 self._host.run("%s link set %s up" % (self._cmd_ip, monitor_device))
311 self._host.run("%s dev %s set freq %s" % (self._cmd_iw,
329 self._host.run('%s dev %s del' % (self._cmd_iw, monitor_device),
331 result = self._host.run('%s dev %s interface add %s type monitor' %
[all …]
/external/autotest/server/site_tests/network_WiFi_RoamSuspendEndToEnd/
Dnetwork_WiFi_RoamSuspendEndToEnd.py46 if self._host.servo.get('lid_open') == 'not_applicable':
50 self._host.servo.lid_close()
51 self._host.wait_down(timeout=timeout_seconds)
53 self._host.servo.lid_open()
54 self._host.wait_up(timeout=timeout_seconds)
64 self._host = host
66 if not self._host.servo:
73 client_at = autotest.Autotest(self._host)
/external/autotest/server/cros/cfm/
Dcfm_base_test.py39 self._host = host
43 self._host, no_chrome = True)
55 if self._host.servo:
64 tpm_utils.ClearTPMOwnerRequest(self._host)
82 self._host.servo.switch_usbkey('dut')
83 self._host.servo.set('usb_mux_sel3', 'dut_sees_usbkey')
85 self._host.servo.set('dut_hub1_rst1', 'off')
103 if not self._host.run('crossystem clear_tpm_owner_request=1',
173 self._host.get_file(remote_path, local_path)
/external/autotest/server/cros/chaos_lib/
Dstatic_runner.py38 self._host = host
43 logging.info('DUT time: %s', self._host.run('date').stdout.strip())
112 utils.sanitize_client(self._host)
118 'hostname' : self._host.hostname,
119 'afe_host' : self._host._afe_host,
121 self._host.host_info_store,
123 host_class=self._host.__class__,
181 kernel_ver = self._host.get_kernel_ver()
182 firmware_ver = utils.get_firmware_ver(self._host)
202 host=self._host,
Dchaos_runner.py44 self._host = host
50 logging.info('DUT time: %s', self._host.run('date').stdout.strip())
73 host_prefix = self._host.hostname.split('-')[0]
154 utils.sanitize_client(self._host)
160 'hostname' : self._host.hostname,
161 'afe_host' : self._host._afe_host,
163 self._host.host_info_store,
165 host_class=self._host.__class__,
228 kernel_ver = self._host.get_kernel_ver()
229 firmware_ver = utils.get_firmware_ver(self._host)
[all …]
/external/autotest/server/site_tests/enterprise_CFM_HuddlyMonitor/
Denterprise_CFM_HuddlyMonitor.py34 self._host,
45 self._host.run(err_msg)
62 self._host.run("/usr/bin/huddlymonitor_update false")
65 self._host.run(err_msg)
78 self._host.run("/usr/bin/huddlymonitor_update true")
93 self._host.run("sudo echo \"<4>uvcvideo: Failed \" >> /dev/kmsg")
/external/autotest/server/site_tests/telemetry_AFDOGenerate/
Dtelemetry_AFDOGenerate.py162 perf_pid = self._host.run_background(perf_cmd)
167 if self._host.run(verify_cmd, ignore_status=True).exit_status != 0:
176 if self._host.run(kill_cmd, ignore_status=True).exit_status != 0:
181 status = _wait_for_process(self._host, int(perf_pid),
188 status = self.scp_perf_data(self._host, self.profdir)
201 self._host = host
214 filesystem_util.make_rootfs_writable(self._host)
221 self._host, self._local, telemetry_on_dut=False)
273 self._host.hostname)
279 self._version, _ = self._host.get_chrome_version()
[all …]
/external/autotest/server/site_tests/autoupdate_ForcedOOBEUpdate/
Dautoupdate_ForcedOOBEUpdate.py19 self._host.run('rm %s' % self._CUSTOM_LSB_RELEASE, ignore_status=True)
28 self._host.run('restart update-engine')
40 boot_id = self._host.get_boot_id()
52 self._host.test_wait_for_boot(boot_id)
79 if 'veyron_rialto' in self._host.get_board():
82 tpm_utils.ClearTPMOwnerRequest(self._host)
108 self._host.reboot()
/external/autotest/server/hosts/
Drpc_server_tracker.py41 self._host = host
85 tunnel_proc = self._host.create_ssh_tunnel(port, local_port)
170 remote_pid = self._host.run_background(remote_cmd)
172 self._host.hostname, remote_pid)
211 self._host.get_file(logfile, temp.name)
280 self._host.run("pkill -f '%s'" % remote_name, ignore_status=True)
287 running_processes = self._host.run(
298 self._host.disconnect_ssh_tunnel(tunnel_proc)
/external/autotest/client/common_lib/cros/network/
Diw_event_logger.py20 self._host = host
22 self._iw_event_log_path = os.path.join(self._host.get_tmp_dir(),
69 out_lines = self._host.run(command).stdout.splitlines()
84 self._host.run('kill %d' % self._pid, ignore_status=True)
87 self._host.get_file(self._iw_event_log_path, self._local_file)
103 iw_log = self._host.run('cat %s' % self._iw_event_log_path).stdout

1234