/external/autotest/server/site_tests/network_WiFi_SuspendStress/ |
D | network_WiFi_SuspendStress.py | 41 out = self._host.run('cryptohome --action=status').stdout 62 if not self._host.servo: 65 if self._host.servo.get('lid_open') == 'not_applicable': 68 self._host.servo.lid_close() 69 self._host.wait_down(timeout=_DELAY) 70 self._host.servo.lid_open() 71 self._host.wait_up(timeout=_DELAY) 80 self._host.run('touch %s' % _CLIENT_TERMINATION_FILE_PATH) 84 self._host = self.context.client.host 86 if not self._host.servo: [all …]
|
/external/autotest/server/site_tests/logging_KernelCrashServer/ |
D | logging_KernelCrashServer.py | 25 self._host.run('rm -f "%s"; cp "%s" "%s" 2>/dev/null; true' % 29 return self._host.run('ls "%s"' % f, 43 self._host.run('mv "%s" "%s.autotest_backup"' % (dst, dst)) 46 self._host.send_file(full_src, dst) 48 self._host.run('touch "%s"' % dst) 49 self._host.run('chown "%s" "%s"' % (owner, dst)) 54 self._host.run('rm -f "%s"' % f) 56 self._host.run('mv "%s.autotest_backup" "%s"' % (f, f)) 75 always_regen = self._host.run('[ -r /etc/send_metrics ]', 77 is_devimg = self._host.run('[ -r /root/.leave_core ]', [all …]
|
/external/autotest/server/site_tests/power_USBHotplugInSuspend/ |
D | power_USBHotplugInSuspend.py | 23 self._host.servo.set('prtctl4_pwren', 'on') 25 self._host.servo.set('prtctl4_pwren', 'off') 26 time.sleep(self._host.servo.USB_POWEROFF_DELAY) 35 lines = self._host.run('lsusb').stdout.strip().split('\n') 47 client_at = autotest.Autotest(self._host) 68 if not self._host.ping_wait_down(_SUSPEND_TIMEOUT): 76 if not self._host.wait_up(self._host.RESUME_TIMEOUT): 98 self._host.servo.switch_usbkey(self._init_usbkey_direction) 106 self._host = host 107 self._init_usbkey_power = self._host.servo.get('prtctl4_pwren') [all …]
|
/external/autotest/server/cros/ |
D | debugd_dev_tools.py | 192 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 …]
|
D | dark_resume_utils.py | 43 self._host = host 55 _wake_dut(self._host) 74 self._host = host 118 self._host.run('umount %s' % POWER_DIR) 121 self._host.run('stop powerd; start powerd') 127 return DarkResumeSuspend(self._client_proxy, self._host) 140 _wake_dut(self._host) 159 client_at = autotest.Autotest(self._host) 162 proxy = self._host.rpc_server_tracker.xmlrpc_connect(
|
D | moblab_test.py | 34 self._host = host 35 self._host.install_boto_file(boto_path) 37 self._host.wait_afe_up() 38 self._host.find_and_add_duts() 59 self._host.run('sed -i /image_storage_server/d %s' % 61 self._host.run("sed -i '/\[CROS\]/ a\image_storage_server: "
|
D | remote_command.py | 16 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),
|
D | telemetry_runner.py | 134 self._host = host 152 info = self._host.host_info_store.get() 155 self._host.hostname) 157 self._host.hostname) 162 info.build, hostname=self._host.hostname) 219 self._host.hostname, 234 '--remote=%s' % self._host.hostname]) 255 (self._host.hostname, DUT_CHROME_ROOT)) 388 self._ensure_deps(self._host, benchmark) 444 self._host.hostname, dst))
|
D | goofy_client.py | 131 self._host = host 147 self._host.ping_wait_up(timeout_min) 149 self._client = self._host.rpc_server_tracker.jsonrpc_connect( 168 self._host.run('factory clear') 272 self._host.job.record('INFO', None, None, 409 factory_bug_log = self._host.run('factory_bug').stderr 426 self._host.get_file(factory_bug_tar, local_factory_bug_tar)
|
/external/autotest/server/cros/network/ |
D | packet_capturer.py | 162 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 …]
|
D | attenuator_controller.py | 207 self._host = host 253 self._host.run('echo 7 > %s' % gpio_pin.pinmux_file) 259 result = self._host.run('cat %s' % gpio_pin.pinmux_file) 287 self._host.run('echo %s > %s' % (gpio_pin.offset, sysfile), 291 self._host.run('echo out > %s' % gpio_pin.direction_file) 297 self._host.close() 350 self._host.run('echo %d > %s' %
|
/external/autotest/server/site_tests/platform_Powerwash/ |
D | platform_Powerwash.py | 29 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('cat %s' % POWERWASH_COUNT,
|
/external/autotest/server/site_tests/network_WiFi_RoamSuspendEndToEnd/ |
D | network_WiFi_RoamSuspendEndToEnd.py | 46 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/chaos_lib/ |
D | static_runner.py | 39 self._host = host 44 logging.info('DUT time: %s', self._host.run('date').stdout.strip()) 67 host_prefix = self._host.hostname.split('-')[0] 122 if self._host.get_os_type() != adb_host.OS_TYPE_ANDROID: 123 utils.sanitize_client(self._host) 127 hosts.create_host({'hostname' : self._host.hostname, 128 'afe_host' : self._host._afe_host}, 129 host_class=self._host.__class__), 184 kernel_ver = self._host.get_kernel_ver() 185 firmware_ver = utils.get_firmware_ver(self._host) [all …]
|
D | chaos_runner.py | 45 self._host = host 51 logging.info('DUT time: %s', self._host.run('date').stdout.strip()) 74 host_prefix = self._host.hostname.split('-')[0] 156 if self._host.get_os_type() != adb_host.OS_TYPE_ANDROID: 157 utils.sanitize_client(self._host) 161 hosts.create_host({'hostname' : self._host.hostname, 162 'afe_host' : self._host._afe_host}, 163 host_class=self._host.__class__), 223 kernel_ver = self._host.get_kernel_ver() 224 firmware_ver = utils.get_firmware_ver(self._host) [all …]
|
/external/autotest/scheduler/ |
D | drones.py | 43 self._host = None 84 if not self._host: 91 result = self._host.run('python %s' % drone_utility_cmd, 149 if not self._host: 158 self._host.run('which lxc-start') 169 self._host.run('sudo -n ls "%s"' % base_container) 192 self._host = local_host.LocalHost() 211 self._host = drone_utility.create_host(hostname) 212 if not self._host.is_up(): 223 self._host.close()
|
/external/autotest/server/hosts/ |
D | rpc_server_tracker.py | 41 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/ |
D | autoupdate_CatchBadSignatures.py | 129 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/ |
D | iw_event_logger.py | 20 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/ |
D | zeroconf_unittest.py | 22 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]
|
/external/autotest/client/site_tests/peerd_HandlesNameConflicts/ |
D | peerd_HandlesNameConflicts.py | 52 self._host = None 58 self._host = interface_host.InterfaceHost( 60 self._zc_listener = zeroconf.ZeroconfDaemon(self._host, 75 self._host, 128 success, duration = self._host.run_until( 154 success, duration = self._host.run_until(run_until_predicate,
|
/external/autotest/server/site_tests/autoupdate_EndToEndTest/ |
D | autoupdate_EndToEndTest.py | 822 self._host = host 921 updater = autoupdater.ChromiumOSUpdater(url, host=self._host) 960 self._host.reboot() 965 self._host.reboot() 1034 self._host, self._host.job_repo_url_attribute) 1071 client_at = autotest.Autotest(self._host) 1091 self._host.send_file(path, '/tmp') 1093 return int(self._host.run(cmd).stdout) 1109 perf_json_txt = self._host.run(cmd).stdout 1125 self._host.reboot() [all …]
|
/external/autotest/server/ |
D | site_gtest_runner.py | 25 self._host = None 46 self._host = hosts.create_host(machine) 49 client_autotest = autotest.Autotest(self._host) 54 logging.info('%s %s Running %s', self._host, 118 self._host.record('START', failed_test, failed_test) 119 self._host.record('INFO', failed_test, 'FAILED: ' + failed_test) 120 self._host.record('END FAIL', failed_test, failed_test, message) 148 self._host.record('START', None, passed_test) 149 self._host.record('INFO', None, 'PASSED: ' + passed_test) 150 self._host.record('END GOOD', None, passed_test)
|
/external/autotest/server/site_tests/power_RPMTest/ |
D | power_RPMTest.py | 22 self._host = host 29 self._host.power_on() 31 self._host.power_off()
|
/external/autotest/client/site_tests/peerd_DiscoverServices/ |
D | peerd_DiscoverServices.py | 54 self._host = None 62 self._host = interface_host.InterfaceHost( 64 self._zc_listener = zeroconf.ZeroconfDaemon(self._host, 78 self._host, 142 success, duration = self._host.run_until(self._has_expected_peer,
|