Home
last modified time | relevance | path

Searched refs:dut (Results 1 – 25 of 81) sorted by relevance

1234

/external/autotest/server/cros/crosperf/
Ddevice_setup_utils.py23 def run_command_on_dut(dut, command, ignore_status=False): argument
34 result = dut.run(command, ignore_status=ignore_status)
42 'Error message: %s' % (dut.hostname, command, ret, err_msg))
52 def disable_aslr(dut): argument
64 run_command_on_dut(dut, disable_aslr)
67 def set_cpu_governor(dut, governor, ignore_status=False): argument
89 dut, set_gov_cmd % governor, ignore_status=ignore_status)
93 def disable_turbo(dut): argument
115 run_command_on_dut(dut, dis_turbo_boost_cmd)
118 def setup_cpu_usage(dut, cpu_usage): argument
[all …]
Ddevice_setup_utils_unittest.py106 self.dut = mock.Mock(spec=hosts.create_host)
107 self.dut.hostname = 'lumpy.cros2'
108 self.dut.run = mock.Mock()
115 self.dut.run.return_value.exit_status = 0
116 self.dut.run.return_value.stdout = ''
117 self.dut.run.return_value.stderr = ''
119 self.dut.run.assert_not_called()
120 device_setup_utils.run_command_on_dut(self.dut, 'run command;')
121 self.dut.run.assert_called_once_with(
127 self.dut.run.return_value.exit_status = 1
[all …]
/external/autotest/client/common_lib/cros/manual/
Daudio_helper.py17 def get_soundcard_by_name(dut, name): argument
29 soundcard = dut.run(cmd, ignore_status=True).stdout.strip().split()[0]
40 def check_soundcard_by_name(dut, name): argument
49 if get_soundcard_by_name(dut, name):
54 def check_audio_stream(dut, is_in_meeting): argument
62 number_stream = get_number_of_active_streams(dut)
74 def get_audio_stream_state(dut, soundcard): argument
90 stream_state = dut.run(cmd, ignore_status=True).stdout.split()
96 def check_default_speaker_volume(dut, cfm_facade): argument
112 nodes = get_nodes_for_default_speakers_cras(dut)
[all …]
Dcfm_helper.py20 def check_chrome_logfile(dut): argument
30 output = dut.run(cmd, ignore_status=True).stdout
38 def check_last_reboot(dut): argument
48 output = dut.run(cmd, ignore_status=True).stdout
56 def check_is_platform(dut, name): argument
66 dut.run, ignore_status=True)
72 def get_mgmt_ipv4(dut): argument
81 output = dut.run(cmd, ignore_status=True).stdout
89 def retrieve_usb_devices(dut): argument
95 usb_devices = (dut.run('usb-devices', ignore_status=True).
[all …]
Dvideo_helper.py22 def get_video_by_name(dut, name): argument
34 video4linux_list = dut.run(cmd, ignore_status=True).stdout.split()
37 video_dev_name = dut.run(cmd, ignore_status=True).stdout.strip()
46 def get_lsof4_video(dut, video): argument
55 lsof_output = dut.run(cmd, ignore_status=True).stdout.strip().split('\n')
61 def get_video_streams(dut, name): argument
68 video_dev = get_video_by_name(dut, name)
69 lsof_output = get_lsof4_video(dut, video_dev)
73 def check_v4l2_interface(dut, vidpid, camera): argument
83 if get_video_by_name(dut, camera):
[all …]
/external/autotest/server/site_tests/telemetry_Crosperf/
Dtelemetry_Crosperf.py65 def scp_telemetry_results(self, client_ip, dut, file_path, host_dir, argument
81 if dut:
82 port = dut.port
83 ip = dut.hostname
122 def run_in_background_with_log(self, cmd, dut, log_path): argument
131 pid = dut.run_background(cmd)
136 check = dut.run('sleep 5; kill -0 %s' % pid, ignore_status=True)
159 dut.run('pgid=$(cat /proc/%s/stat | cut -d")" -f2 | '
165 '', dut, log_path, self.resultsdir, ignore_status=True)
171 def run_cpustats_in_background(self, dut, log_name): argument
[all …]
Dcontrol25 dut = hosts.create_host(machine)
28 args=args_dict, dut=dut)
/external/autotest/server/site_tests/p2p_EndToEndTest/
Dp2p_EndToEndTest.py43 def run_once(self, dut, file_id, is_main, peers, barrier): argument
44 self._dut = dut
51 dut.run('start p2p || true')
52 dut.run('status p2p | grep running')
55 dut.run('touch %s' % file_temp_name)
56 dut.run('setfattr -n user.cros-p2p-filesize -v %d %s'
58 dut.run('mv %s %s' % (file_temp_name, file_shared_name))
70 dut.run('dd if=/dev/urandom of=%s bs=1000 count=%d'
84 dut.run('dd if=/dev/urandom of=%s bs=1000 count=%d'
104 ret = dut.run('p2p-client --get-url=%s' % file_id)
[all …]
/external/autotest/client/cros/cellular/
Dlabconfig.py122 for dut in self.cell["duts"]:
123 if machine == dut["address"] or machine == dut["name"]:
124 return dut
128 (machine, dut['address'],
129 dut['name'], self.options.cell, self.cell['duts']))
154 dut = self._get_dut(machine)
155 print dut
156 return dut['rf_switch_port']
/external/autotest/client/common_lib/cros/
Dpower_cycle_usb_util.py93 def power_cycle_usb_vidpid(dut, board, vid, pid, pause=1): argument
111 bus_idx, port_idx = get_port_number_from_vidpid(dut, vid, pid)
116 usb_manager = usb_port_manager.UsbPortManager(dut)
123 def get_port_number_from_vidpid(dut, vid, pid): argument
139 lsusb_output = dut.run(cmd, ignore_status=True).stdout
145 lsusb_output = dut.run(cmd, ignore_status=True).stdout
223 def get_all_port_number_from_vidpid(dut, vid, pid): argument
240 lsusb_output = dut.run(cmd, ignore_status=True).stdout
245 lsusb_output = dut.run(cmd, ignore_status=True).stdout
282 def get_target_all_gpio(dut, board, vid, pid): argument
[all …]
/external/autotest/server/hosts/
Dchameleon_host.py141 def create_chameleon_host(dut, chameleon_args): argument
171 dut_is_hostname = not dnsname_mangler.is_ip_address(dut)
173 chameleon_hostname = chameleon.make_chameleon_hostname(dut)
189 hosts = afe.get_hosts(hostname=dut)
200 def create_btpeer_host(dut, btpeer_args_list): argument
249 if (not dnsname_mangler.is_ip_address(dut) and
250 utils.host_is_in_lab_zone(dut)):
253 btpeer_hostnames = chameleon.make_btpeer_hostnames(dut)
276 hosts = afe.get_hosts(hostname=dut)
/external/autotest/server/cros/clique_lib/
Dclique_runner.py99 for dut in dut_objects:
100 if not utils.is_dut_healthy(dut.wifi_client, ap):
101 logging.error('DUT %s not healthy.', dut.host.hostname)
112 for dut in dut_objects:
113 utils.sanitize_client(dut.host)
126 for dut in dut_objects:
127 dut.wifi_client.shill.sync_time_to(epoch_seconds)
144 for dut in dut_objects:
145 kernel_ver = dut.host.get_kernel_ver()
146 firmware_ver = utils.get_firmware_ver(dut.host)
[all …]
Dclique_dut_locker.py93 self.dut.host.hostname,
255 def _unlock_one_dut(self, dut): argument
260 host_name = dut.host.host_name
262 self._locked_duts.remove(dut)
269 for dut in self.locked_duts:
270 self._unlock_one_dut(dut)
274 for dut in self.locked_duts:
275 dut.wifi_client.close()
276 self._unlock_one_dut(dut)
Dclique_dut_log_collector.py14 def log_collector_dut_worker(dut, job): argument
25 host = dut.host
46 for dut in dut_objects:
51 args=(dut, job))
Dclique_dut_updater.py19 def update_dut_worker(updater_obj, dut, image, force): argument
33 updater_obj.update_dut(dut_host=dut.host, image=image, force=force)
176 for dut in dut_objects:
177 dut_board = self._get_board_name_from_host(dut.host)
185 args=(self, dut, dut_image, False))
/external/autotest/site_utils/tester_feedback/
Drequest.py17 def __init__(self, test, dut, desc): argument
25 self.dut = dut
38 {'test': self.test, 'dut': self.dut, 'desc': self.desc})
Daudio_query_delegate_impl.py61 req = sequenced_request.SequencedFeedbackRequest(self.test, self.dut,
82 self.test, self.dut, 'Audible playback')
98 self.test, self.dut, None)
126 self.test, self.dut, 'Silent playback')
145 self.test, self.dut, None)
170 self.test, self.dut, 'Audio recording')
191 self.test, self.dut, None)
231 self.test, self.dut, None)
Dquery_delegate.py22 def __init__(self, test, dut, multiplexer, atomic=True): argument
32 self.dut = dut
/external/autotest/server/site_tests/moblab_StorageQual/
Dmoblab_StorageQual.py84 for dut in duts:
87 board = labellib.LabelsMapping(dut.labels)['board']
88 for label in dut.labels:
90 dut_to_label[dut.hostname] = label
230 job_id, dut = match.groups()
233 if dut not in keyvals_per_host:
234 keyvals_per_host[dut] = []
235 keyvals_per_host[dut].append(line)
/external/toolchain-utils/crosperf/
Dschedv2.py28 def __init__(self, dut, sched): argument
29 super(DutWorker, self).__init__(name='DutWorker-{}'.format(dut.name))
30 self._dut = dut
189 def dut(self): member in DutWorker
266 self._active_workers = [DutWorker(dut, self) for dut in self._duts]
360 def get_benchmark_run(self, dut): argument
377 if dut.label is None:
382 with self.lock_on(dut.label):
383 brl = self._label_brl_map[dut.label]
389 def allocate_label(self, dut): argument
[all …]
/external/autotest/site_utils/deployment/prepare/
Ddut_unittest.py15 import autotest_lib.site_utils.deployment.prepare.dut as dut namespace
60 dut.verify_labstation_RPM_config_unsafe(m)
65 dut.verify_labstation_RPM_config_unsafe(m)
/external/autotest/utils/
Dprobe_bluetooth_duts.sh32 dut="$1.cros"
35 ping -q -w 10 -c1 "${dut}" > /dev/null 2>&1
39 board=$(ssh ${SSH_OPTIONS} root@"$dut" cat /etc/lsb-release | \
44 > "${PROBE_RESULT_DIR}/${dut}"
/external/autotest/server/control_segments/
Dget_network_stats14 dut = hosts.create_target_machine(machine)
18 if utils.ping(dut.hostname, tries=1, timeout=3) != 0:
24 result = dut.run('route; echo SEPARATOR; cat /proc/net/dev')
/external/autotest/server/site_tests/crosperf_Wrapper/
Dcrosperf_Wrapper.py25 def run_once(self, test_name, test_args, dut_config_str, dut=None): argument
44 wait_time = device_setup_utils.setup_device(dut, dut_config)
51 client_at = autotest.Autotest(dut)
/external/autotest/server/site_tests/cheets_CTS_P/
Dcheets_CTS_P.py121 for dut in self.dut_fixtures:
122 dut.log_camera_scene()
123 dut.initialize()
218 for dut in self.dut_fixtures:
219 dut.cleanup()

1234