Home
last modified time | relevance | path

Searched refs:file_path (Results 1 – 25 of 33) sorted by relevance

12

/tools/test/connectivity/acts/framework/acts/test_utils/fuchsia/
Dutils.py48 file_path = os.path.join(file_directory, file_name)
56 curl_cmd += ' --url %s > %s' % (url, file_path)
59 'Download %s to %s by ssh command %s' % (url, file_path, curl_cmd))
70 if _check_file_existence(fd, file_path):
72 '%s is downloaded to %s successfully' % (url, file_path))
82 fd.log.info('Remove the downloaded file %s' % file_path)
83 fd.send_command_ssh('rm %s' % file_path)
108 def _check_file_existence(fd, file_path): argument
116 out = fd.send_command_ssh('ls -al "%s"' % file_path)
120 fd.log.debug('File %s does not exist.' % file_path)
[all …]
/tools/test/connectivity/acts/framework/tests/controllers/
Diperf_client_test.py88 file_path = '/path/to/foo'
89 client._get_full_file_path = lambda _: file_path
93 mock_open.assert_called_with(file_path, 'w')
108 file_path = '/path/to/foo'
109 client._get_full_file_path = lambda _: file_path
113 mock_open.assert_called_with(file_path, 'w')
125 file_path = '/path/to/foo'
127 client._get_full_file_path = lambda _: file_path
134 mock_open.assert_called_with(file_path, 'w')
/tools/test/connectivity/acts/framework/tests/metrics/
Dcore_test.py213 file_path = ('output/path/metrics/metric.' +
217 file_path,
239 file_path = ('output/path/metrics/metric.' +
243 file_path)
264 file_path = ('output/path/metrics/metric.' +
268 file_path,
290 file_path = ('output/path/metrics/metric.' +
294 file_path)
/tools/acloud/pull/
Dpull.py145 file_path = os.path.join(constants.REMOTE_LOG_FOLDER, file_name)
146 if file_path in log_files:
147 return [file_path]
149 "instance." % file_path)
196 for file_path in files:
197 file_name = os.path.basename(file_path)
199 log_files.remove(file_path)
/tools/test/connectivity/acts/framework/acts/controllers/
Darduino_wifi_dongle.py180 def write(self, arduino, file_path, network=None): argument
193 self.stop_controller_log('Flashing %s\n' % file_path)
194 cmd = arduino + file_path + ' --upload --port ' + self.port
196 cmd = self._update_ino_wifi_network(arduino, file_path, network)
209 def _update_ino_wifi_network(self, arduino, file_path, network): argument
220 tmp_file = '%s%s' % (TMP_DIR, file_path.split('/')[-1])
221 utils.exe_cmd('cp %s %s' % (file_path, tmp_file))
Diperf_server.py334 file_path = os.path.join(out_dir, out_file_name)
335 self.log_files.append(file_path)
336 return file_path
/tools/test/connectivity/acts/framework/acts/test_utils/tel/
Dtel_test_utils.py3672 def _check_file_existance(ad, file_path, expected_file_size=None): argument
3678 out = ad.adb.shell('stat -c "%%s" %s' % file_path)
3686 ad.log.info("File %s of size %s exists", file_path, file_size)
3690 file_path, file_size, expected_file_size)
3693 ad.log.info("File %s exists", file_path)
3696 ad.log.info("File %s does not exist.", file_path)
4087 file_path = os.path.join(file_directory, file_name)
4093 curl_cmd += " --url %s > %s" % (url, file_path)
4096 file_path, curl_cmd)
4099 if _check_file_existance(ad, file_path, expected_file_size):
[all …]
/tools/doc_generation/
Dswitcher4.py78 file_path = doc[len(java_ref_root)+1:]
85 file_path = doc[len(kotlin_ref_root)+1:]
94 page_path_slug = "sed -i 's/_page_path_/{}/' {}".format(file_path.replace("/","\/"),doc)
188 file_path = doc[len(kotlin_source_abs_path)+1:]
189 include_path = os.path.join("/reference/_kotlin", file_path)
/tools/test/connectivity/acts/framework/acts/test_utils/net/
Darduino_test_utils.py47 file_path = utils.exe_cmd(cmd).decode("utf-8", "ignore").split()[-1]
48 write_status = wd.write(ARDUINO, file_path, network)
68 file_path = utils.exe_cmd(cmd).decode("utf-8", "ignore").rstrip()
69 write_status = wd.write(ARDUINO, file_path)
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/test_actions/
Dagsa_acts.py50 def _initiate_agsa_ota(self, file_path, destination=None, force=True): argument
61 if self.dut.push_file_to_phone(file_path, destination):
117 def initiate_agsa_and_wait_until_transfer(self, file_path, destination=None, argument
124 self._initiate_agsa_ota(file_path, destination, force)
/tools/acloud/setup/
Dgoogle_sdk.py171 file_path = os.path.join(self._tmp_path, filename)
173 logger.info("Save the file to: %s", file_path)
178 with open(file_path, 'wb') as output:
180 utils.Decompress(file_path, self._tmp_path)
/tools/tradefederation/core/atest/
Dmodule_info.py102 file_path = module_file
103 if not file_path:
104 module_info_target, file_path = self._discover_mod_file_and_target(
106 with open(file_path) as json_file:
/tools/asuite/atest/
Dmodule_info.py104 file_path = module_file
105 if not file_path:
106 module_info_target, file_path = self._discover_mod_file_and_target(
108 with open(file_path) as json_file:
/tools/test/connectivity/acts_tests/tests/google/net/
DDataUsageTest.py79 self.file_path = DOWNLOAD_PATH + self.download_file_ipv4.split("/")[-1]
147 ad, self.file_path, self.file_size * BYTE_TO_MB)
149 self.log.info("Delete file: %s", self.file_path)
150 ad.adb.shell("rm %s" % self.file_path, ignore_status=True)
DDataCostTest.py253 file_path = os.path.join(file_folder, file_name)
254 self.log.info("File path: %s" % file_path)
255 if _check_file_existance(ad, file_path):
/tools/asuite/aidegen/vscode/
Dvscode_workspace_file_gen.py80 file_path = os.path.join(abs_path, file_name)
81 common_util.dump_json_dict(file_path, workspace_dict)
82 return file_path
Dvscode_workspace_file_gen_unittest.py56 file_path = os.path.join(abs_path, file_name)
57 self.assertEqual(res, file_path)
/tools/acloud/public/actions/
Dcommon_operations.py155 file_path = os.path.join(tempdir, file_name)
156 src_dict[file_path] = file_name
157 with open(file_path, "w") as f:
/tools/test/connectivity/acts_tests/tests/google/tel/live/
DTelLiveSettingsTest.py161 file_path, file_name = os.path.split(path)
162 dest_path = os.path.join(file_path, dst_name)
164 unzip_maintain_permissions(path, file_path)
DTelLiveNoQXDMLogTest.py404 file_path = os.path.join(bugreport_path, filename)
405 ad.log.info(file_path)
406 unzip_maintain_permissions(file_path, bugreport_path)
/tools/acloud/public/
Ddevice_driver.py329 file_path = os.path.join(tempdir, file_name)
330 src_dict[file_path] = file_name
331 with open(file_path, "w") as f:
/tools/test/connectivity/acts/framework/acts/test_utils/coex/
Dcoex_test_utils.py162 file_path = os.path.join(dumpsys_path, out_file)
163 return file_path
1291 def parse(self, file_path): argument
1302 with open(file_path) as dumpsys_file:
/tools/asuite/aidegen/lib/
Dclion_project_file_gen.py440 file_path = os.path.join(file_dir, constant.CLION_PROJECT_FILE_NAME)
441 if not os.path.isfile(file_path):
443 common_util.COLORED_INFO('Warning:'), file_path)
/tools/asuite/atest/test_finders/
Dtest_finder_utils.py835 dir_path, file_path = os.path.split(path)
837 dir_path, file_path = path, None
838 return dir_path, file_path
/tools/tradefederation/core/atest/test_finders/
Dtest_finder_utils.py822 dir_path, file_path = os.path.split(path)
824 dir_path, file_path = path, None
825 return dir_path, file_path

12