/external/autotest/site_utils/tester_feedback/ |
request.py | 15 _TITLE_TEMPLATE = '%(desc)s request from %(dut)s (%(test)s)' 17 def __init__(self, test, dut, desc): 21 @param dut: The DUT name. 25 self.dut = dut 38 {'test': self.test, 'dut': self.dut, 'desc': self.desc})
|
query_delegate.py | 22 def __init__(self, test, dut, multiplexer, atomic=True): 26 @param dut: The name of the DUT. 32 self.dut = dut
|
audio_query_delegate_impl.py | 61 req = sequenced_request.SequencedFeedbackRequest(self.test, self.dut, 82 self.test, self.dut, 'Audible playback') 84 'Device %(dut)s will play a short audible sample. Please ' 98 self.test, self.dut, None) 99 msg = 'Playback finished on %(dut)s.' 126 self.test, self.dut, 'Silent playback') 128 'Device %(dut)s will play nothing for a short time. Please ' 145 self.test, self.dut, None) 147 'Silence playback finished on %(dut)s.', 170 self.test, self.dut, 'Audio recording' [all...] |
/external/autotest/client/common_lib/cros/manual/ |
video_helper.py | 22 def get_video_by_name(dut, name): 25 @param dut: The handle of the device under test. Should be initialized in 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): 49 @param dut: The handle of the device under test. Should be initialized in 55 lsof_output = dut.run(cmd, ignore_status=True).stdout.strip().split('\n') 61 def get_video_streams(dut, name): 64 @param dut: The handle of the device under test. 68 video_dev = get_video_by_name(dut, name [all...] |
audio_helper.py | 17 def get_soundcard_by_name(dut, name): 20 @param dut: The handle of the device under test. 29 soundcard = dut.run(cmd, ignore_status=True).stdout.strip().split()[0] 40 def check_soundcard_by_name(dut, name): 43 @param dut: The handle of the device under test. 49 if get_soundcard_by_name(dut, name): 54 def check_audio_stream(dut, is_in_meeting): 57 @param dut: The handle of the device under test. 62 number_stream = get_number_of_active_streams(dut) 74 def get_audio_stream_state(dut, soundcard) [all...] |
cfm_helper.py | 18 def check_chrome_logfile(dut): 21 @param dut: The handle of the device under test. 28 output = dut.run(cmd, ignore_status=True).stdout 36 def check_last_reboot(dut): 39 @param dut: The handle of the device under test. 46 output = dut.run(cmd, ignore_status=True).stdout 54 def check_is_platform(dut, name): 57 @param dut: The handle of the device under test. 63 output = dut.run(cmd, ignore_status=True).stdout.strip() 69 def get_mgmt_ipv4(dut) [all...] |
/external/autotest/server/site_tests/brillo_BootLoader/ |
brillo_BootLoader.py | 32 Prerequisite: The DUT is in ADB mode. 34 self.num_slots = int(self.dut.run_output('bootctl get-number-slots')) 36 self.suffix_a = self.dut.run_output('bootctl get-suffix 0') 37 self.suffix_b = self.dut.run_output('bootctl get-suffix 1') 42 self.boot_a_size = int(self.dut.run_output( 44 self.boot_b_size = int(self.dut.run_output( 57 Prerequisite: The DUT is in bootloader mode. 62 cmd_output = self.dut.fastboot_run('getvar %s' % variable_name) 74 Prerequisite: The DUT is in ADB mode. 78 self.dut.ensure_bootloader_mode( [all...] |
/external/autotest/server/site_tests/p2p_EndToEndTest/ |
p2p_EndToEndTest.py | 43 def run_once(self, dut, file_id, is_master, peers, barrier): 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/server/cros/clique_lib/ |
clique_dut_log_collector.py | 14 def log_collector_dut_worker(dut, job): 15 """Worker function to collect logs from each DUT in the pool. 17 The method called by multiprocessing worker pool for collecting DUT 19 DUT through the multiprocessing worker. This has to be defined outside 22 @param dut: DUTObject representing the DUT. 25 host = dut.host 34 from all the DUT's in the DUT pool after the test is executed. 38 """Collects logs from all tall the DUT's in the pool to a provide [all...] |
clique_dut_locker.py | 19 # Max number of retry attempts to lock a DUT. 22 # Tuple containing the DUT objects 26 """Object to specify the DUT spec. 46 """@return class name, dut host name, lock status and retries.""" 54 """Object to specify the DUT set spec. It's a list of DUTSpec objects.""" 62 """Object to specify the DUT pool spec.It's a list of DUTSetSpec objects.""" 70 """Object to keep track of DUT lock state. 72 @attribute dut_spec: an DUTSpec object corresponding to the DUT we need. 73 @attribute retries: an integer, max number of retry attempts to lock DUT. 74 @attribute to_be_locked: a boolean, True iff DUT has not been locked [all...] |
clique_runner.py | 35 DUT's. 43 # Log server and DUT times 48 """Allocate the required DUT's from the spec for the test. 49 The DUT objects are stored in a list of sets in |_dut_pool| attribute. 57 # Flatten the list of DUT objects into a single list. 63 """Allocate the required DUT's from the spec for the test. 69 @return: True if all the DUT's successfully upgraded, False otherwise. 76 """Allocate the required DUT's from the spec for the test. 77 The DUT objects are stored in a list of sets in |_dut_pool| attribute. 102 for dut in dut_objects [all...] |
clique_dut_updater.py | 19 def update_dut_worker(updater_obj, dut, image, force): 20 """The method called by multiprocessing worker pool for updating DUT. 22 DUT through the multiprocessing worker. This has to be defined outside 26 @param dut: DUTObject representing the DUT. 33 updater_obj.update_dut(dut_host=dut.host, image=image, force=force) 37 """CliqueDUTUpdater is responsible for updating all the DUT's in the 38 DUT pool to the same release. 42 """Initializes the DUT updater for updating the DUT's in the pool."" [all...] |
/external/autotest/server/control_segments/ |
get_network_stats | 7 # Collect network stats from the DUT. 14 dut = hosts.create_target_machine(machine) 16 # The information is not critical, so ping the DUT first 18 if utils.ping(dut.hostname, tries=1, timeout=3) != 0: 24 result = dut.run('route; echo SEPARATOR; cat /proc/net/dev')
|
/external/autotest/contrib/ |
run-inventory | 6 site_utils/balance_pools.py "${ARGS[@]}" &> logs/dut-data/$BALANCE_POOL_LOG
|
/external/autotest/utils/ |
probe_bluetooth_duts.sh | 32 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}" 105 echo "Dut ping board"
|
/external/autotest/client/cros/cellular/ |
labconfig.py | 47 and the DUT.""" 84 """Returns the DUT record for machine from cell["duts"] 122 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 [all...] |
/external/autotest/server/site_tests/telemetry_Crosperf/ |
telemetry_Crosperf.py | 82 """Waits for a process on the DUT to terminate. 84 @param host: A host object representing the DUT. 93 """Kills perf on the DUT. 95 @param host: A host object representing the DUT. 124 def _ensure_deps(dut, test_name): 126 Ensure the dependencies are locally available on DUT. 128 @param dut: The autotest host object representing DUT. 146 # Download DEPs to DUT. 158 dut.send_file(src, dst [all...] |
/external/autotest/server/site_tests/moblab_StorageQual/ |
moblab_StorageQual.py | 24 Each DUT will run a sequence of tests, and the test will then verify 25 that the correct tests ran on the correctly labeled DUT, in the correct 30 # Moblab expects to have 1 dut with each of these labels 70 from the DUT. 84 for dut in duts: 85 # Fetch the board of the DUT's assigned to this Moblab. There should 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( [all...] |
/external/toolchain-utils/crosperf/ |
schedv2.py | 21 """Working thread for a dut.""" 23 def __init__(self, dut, sched): 24 super(DutWorker, self).__init__(name='DutWorker-{}'.format(dut.name)) 25 self._dut = dut 62 # Secondly, handle benchmarkruns that needs to be run on dut. 74 'for dut, stopping working ' 78 # Reimage to run other br fails, dut is doomed, stop 80 self._logger.LogWarning('Re-image failed, dut ' 96 label: the label to remimage onto dut. 149 """Try to match dut image with a certain experiment label 179 def dut(self): member in class:DutWorker [all...] |
machine_image_manager.py | 17 exist - remote (a set/vector/list of dut names (not dut object), to each 23 is an integer which is dut oridnal. We access this array using label 35 dut_name_ordinal_ - mapping from dut name (a string) to an integer, 133 We have only 1 dut or if we have only 1 label, that's simple enough. 142 for idx, dut in enumerate(self.duts_): 143 self.dut_name_ordinal_[dut.name] = idx 157 """Compute the initial label-dut allocation. 194 def allocate(self, dut, schedv2=None): 195 """Allocate a label for dut [all...] |
/external/autotest/server/hosts/ |
chameleon_host.py | 19 # the chameleon_host and chameleon_port for a servo connected to the DUT. 141 def create_chameleon_host(dut, chameleon_args): 145 1) If the DUT is in Cros Lab and has a chameleon board, then create 152 @param dut: host name of the host that chameleon connects. It can be used 154 If dut is an IP address, it can not be used to lookup the 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)
|
/external/autotest/client/common_lib/cros/ |
power_cycle_usb_util.py | 5 """Power cycle a usb port on DUT(device under test).""" 93 def power_cycle_usb_vidpid(dut, board, vid, pid, pause=1): 95 Power cycle a usb port on DUT via peripharel's VID and PID. 102 @param dut: The handle of the device under test. 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): 125 Get bus number and port number a device is connected to on DUT. 130 @param dut: The handle of the device under test. 139 lsusb_output = dut.run(cmd, ignore_status=True).stdou [all...] |
/external/autotest/server/site_tests/moblab_RunSuite/ |
moblab_RunSuite.py | 45 from the DUT. 52 # Fetch the board of the DUT's assigned to this Moblab. There should 55 dut = host.afe.get_hosts()[0] 60 labels = labellib.LabelsMapping(dut.labels)
|
/external/autotest/server/lib/ |
suite_report.py | 111 dut = None 118 dut = s.hostname 127 if dut: 128 entry['dut'] = dut
|
/external/autotest/server/site_tests/cheets_CTS_N/ |
cheets_CTS_N.py | 117 """Configure DUT and chart running in camerabox environment. 118 @param camera_facing: the facing of the DUT used in testing 140 for dut in self.dut_fixtures: 141 dut.initialize() 200 dut before the test is run, the scripts must already be installed. 202 dut before the log-in for the test is performed. 219 """Cleanup configuration on DUT and chart tablet for running in 222 for dut in self.dut_fixtures: 223 dut.cleanup()
|