Home
last modified time | relevance | path

Searched refs:_host (Results 1 – 25 of 84) 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()
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/rlz_CheckPing/
Drlz_CheckPing.py23 self._host.run('mosys -k platform brand | grep brand')
38 self._host.run('vpd -i RW_VPD -s should_send_rlz_ping=1')
48 self._host.run('dump_vpd_log --force')
62 self._host.run(cmd)
63 self._host.reboot()
69 return int(self._host.run('vpd -i RW_VPD -g '
75 result = self._host.run('vpd -i RW_VPD -g rlz_embargo_end_date',
85 self._host.run('sed -i /--rlz-ping-delay/d /etc/chrome_dev.conf')
86 self._host.run('echo --rlz-ping-delay=%d >> /etc/chrome_dev.conf' %
91 self._host = host
[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: "
Dtradefed_chromelogin.py31 self._host = host
54 cmd = autotest.Autotest.get_installed_autodir(self._host)
72 self._host.run(
85 autotest.Autotest(self._host).run_timed_test(
90 self._host.run(
171 self._host.run(script, ignore_status=False, verbose=False, timeout=120)
187 if self._hard_reboot_on_failure and self._host.servo:
188 logging.info('Powering OFF the DUT: %s', self._host)
189 self._host.servo.get_power_state_controller().power_off()
190 logging.info('Powering ON the DUT: %s', self._host)
[all …]
Ddark_resume_utils.py43 self._host = host
56 _wake_dut(self._host)
75 self._host = host
103 self._host.run('umount %s' % POWER_DIR)
106 self._host.run('stop powerd; start powerd')
116 return DarkResumeSuspend(self._client_proxy, self._host, suspend_for)
136 _wake_dut(self._host)
161 client_at = autotest.Autotest(self._host)
164 proxy = self._host.rpc_server_tracker.xmlrpc_connect(
Dtelemetry_runner.py96 self._host = host
114 info = self._host.host_info_store.get()
117 self._host.host_port)
119 self._host.host_port)
124 info.build, hostname=self._host.hostname)
179 [self._host.ssh_command(alive_interval=900,
195 '--remote=%s' % self._host.host_port])
214 scp_cmd.append(self._host.make_ssh_options(alive_interval=900,
216 if not self._host.is_default_port:
217 scp_cmd.append('-P %d' % self._host.port)
[all …]
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),
/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.py81 self._host = host
86 self._run = self._host.run if self._host else None
87 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)
427 self._host = self._hosts[0]
428 if self._host is None:
430 info = self._host.host_info_store.get()
431 return info.attributes.get(self._host.job_repo_url_attribute, '')
452 lsb = self._host.run('cat /etc/lsb-release').stdout
[all …]
/external/autotest/server/cros/network/
Dpacket_capturer.py162 self._host = host
183 self._host.run("%s dev %s del" % (self._cmd_iw, device))
186 self._host.run("%s link set %s down" % (self._cmd_ip, device))
187 self._host.run("%s dev %s del" % (self._cmd_iw, device))
208 self._host.run('%s dev %s del' % (self._cmd_iw, monitor_device),
210 result = self._host.run('%s phy %s interface add %s type monitor' %
241 self._host.run("%s link set %s up" % (self._cmd_ip, monitor_device))
242 self._host.run("%s dev %s set freq %s" % (self._cmd_iw,
260 self._host.run('%s dev %s del' % (self._cmd_iw, monitor_device),
262 result = self._host.run('%s dev %s interface add %s type monitor' %
[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/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/site_tests/power_WakeSources/
Dpower_WakeSources.py73 return self._host.run(
116 if self._host.run('which hammerd', ignore_status=True).\
153 if not self._host.is_up():
179 if not self._host.is_up():
198 self._host.servo.power_short_press()
200 self._host.servo.lid_close()
202 self._host.servo.lid_open()
208 self._host.servo.ctrl_key()
220 self._host = host
223 self._ec = chrome_ec.ChromeEC(self._host.servo)
[all …]
/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')
98 tpm_utils.ClearTPMOwnerRequest(self._host)
167 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())
66 host_prefix = self._host.hostname.split('-')[0]
114 utils.sanitize_client(self._host)
120 'hostname' : self._host.hostname,
121 'afe_host' : self._host._afe_host,
123 self._host.host_info_store,
125 host_class=self._host.__class__,
183 kernel_ver = self._host.get_kernel_ver()
184 firmware_ver = utils.get_firmware_ver(self._host)
[all …]
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/autoupdate_NonBlockingOOBEUpdate/
Dautoupdate_NonBlockingOOBEUpdate.py18 self._host.run('rm %s' % self._CUSTOM_LSB_RELEASE, ignore_status=True)
33 tpm_utils.ClearTPMOwnerRequest(self._host)
34 self._host.run('ls /home/chronos/.oobe_completed', ignore_status=True)
38 if 'veyron_rialto' in self._host.get_board():
46 client_at = autotest.Autotest(self._host)
/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)
204 self._host.get_file(logfile, temp.name)
273 self._host.run("pkill -f '%s'" % remote_name, ignore_status=True)
280 running_processes = self._host.run(
291 self._host.disconnect_ssh_tunnel(tunnel_proc, port)
/external/autotest/server/site_tests/autoupdate_CatchBadSignatures/
Dautoupdate_CatchBadSignatures.py129 client_host = autotest.Autotest(self._host)
140 cmdresult = self._host.run('cat /var/log/update_engine.log')
187 self._host.hostname)
202 if self._host:
203 self._host.reboot()
209 self._host = host
/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
/external/autotest/client/cros/netprotos/
Dzeroconf_unittest.py22 self._host = fake_host.FakeHost(FAKE_IPADDR)
23 self._zero = zeroconf.ZeroconfDaemon(self._host, FAKE_HOSTNAME)
68 self.assertEqual(self._zero.host, self._host)
78 self.assertEqual(len(self._host._sockets), 1)
79 sock = self._host._sockets[0]
99 self.assertEqual(record.ip, socket.inet_aton(self._host.ip_addr))
139 sock = self._host._sockets[0]

1234