Home
last modified time | relevance | path

Searched refs:file_path (Results 1 – 25 of 32) 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/acloud/pull/
Dpull.py146 file_path = os.path.join(_REMOTE_LOG_FOLDER, file_name)
147 if file_path in log_files:
148 return [file_path]
150 "instance." % file_path)
197 for file_path in files:
198 file_name = os.path.basename(file_path)
200 log_files.remove(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/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/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/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/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/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.py314 file_path = os.path.join(out_dir, out_file_name)
315 self.log_files.append(file_path)
316 return file_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/framework/acts/test_utils/instrumentation/power/
Dinstrumentation_power_test.py283 def file_exists(self, file_path): argument
284 cmd = '(test -f %s && echo yes) || echo no' % file_path
291 'Expected yes/no, got %s' % (file_path, result[cmd]))
293 def push_to_external_storage(self, file_path, dest=None, argument
305 dest = os.path.basename(file_path)
308 self.log.info('clearing %s before pushing %s' % (dest_path, file_path))
310 self.log.info('pushing file %s to %s' % (file_path, dest_path))
311 self.ad_dut.adb.push(file_path, dest_path, timeout=timeout)
/tools/acloud/public/actions/
Dcommon_operations.py147 file_path = os.path.join(tempdir, file_name)
148 src_dict[file_path] = file_name
149 with open(file_path, "w") as f:
/tools/test/connectivity/acts/tests/google/net/
DDataCostTest.py244 file_path = os.path.join(file_folder, file_name)
245 self.log.info("File path: %s" % file_path)
246 if _check_file_existance(ad, file_path):
DDataUsageTest.py78 self.file_path = DOWNLOAD_PATH + self.download_file_ipv4.split("/")[-1]
146 ad, self.file_path, self.file_size * BYTE_TO_MB)
148 self.log.info("Delete file: %s", self.file_path)
149 ad.adb.shell("rm %s" % self.file_path, ignore_status=True)
/tools/test/connectivity/acts/framework/acts/test_utils/coex/
Daudio_capture_device.py142 file_path = self.write_record_file(self.audio_params, frames)
143 return file_path
DCoexBaseTest.py191 file_path = collect_bluetooth_manager_dumpsys_logs(
194 self.a2dp_dumpsys.parse(file_path))
/tools/test/connectivity/acts/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)
/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/wifi/
Dota_sniffer.py100 file_path = os.path.join(self.log_path, out_file_name)
101 return file_path
/tools/asuite/aidegen/lib/
Dclion_project_file_gen.py413 file_path = os.path.join(file_dir, constant.CLION_PROJECT_FILE_NAME)
414 if not os.path.isfile(file_path):
416 common_util.COLORED_INFO('Warning:'), file_path)
Dcommon_util.py600 def read_file_line_to_list(file_path): argument
610 with open(file_path, encoding='utf8') as infile:
/tools/test/connectivity/acts/framework/tests/
Daudio_analysis_integrationtest.py135 file_path = os.path.join(
137 binary = open(file_path, 'rb').read()

12