/external/chromium-trace/catapult/telemetry/telemetry/wpr/ |
D | archive_info_unittest.py | 40 self.tmp_dir = tempfile.mkdtemp() 43 self.tmp_dir, 'info.json') 49 with open(os.path.join(self.tmp_dir, ('data_00%d.wpr' % i)), 'w') as f: 59 shutil.rmtree(self.tmp_dir) 79 {os.path.join(self.tmp_dir, recording1): "dummyhash", 80 os.path.join(self.tmp_dir, recording2): "dummyhash2",}) 111 new_temp_recording = os.path.join(self.tmp_dir, 'recording.wpr') 112 expected_archive_file_path = os.path.join(self.tmp_dir, 'data_003.wpr') 126 recording1_path = os.path.join(self.tmp_dir, recording1) 127 recording2_path = os.path.join(self.tmp_dir, recording2) [all …]
|
/external/autotest/client/tests/dma_memtest/ |
D | dma_memtest.py | 100 tmp_dir = 'linux.%s' % j 102 os.mkdir(tmp_dir) 104 tar_cmd = ['tar', 'jxf', self.tarball, '-C', tmp_dir] 105 logging.debug("Unpacking tarball to %s", tmp_dir) 110 logging.debug("Unpacking tarball to %s", tmp_dir) 111 utils.extract_tarball_to_dir(self.tarball, tmp_dir) 122 tmp_dir = 'linux.%s/%s' % (j, 125 diff_cmd = ['diff', '-U3', '-rN', 'linux.orig', tmp_dir] 126 logging.debug("Comparing linux.orig with %s", tmp_dir) 133 logging.debug('Comparing linux.orig with %s', tmp_dir) [all …]
|
/external/chromium-trace/catapult/dependency_manager/dependency_manager/ |
D | dependency_manager_util_unittest.py | 24 self.tmp_dir = os.path.abspath(tempfile.mkdtemp(prefix='telemetry')) 25 self.sub_dir = os.path.join(self.tmp_dir, 'sub_dir') 28 self.read_only_path = (os.path.join(self.tmp_dir, 'read_only')) 33 self.writable_path = (os.path.join(self.tmp_dir, 'writable')) 38 self.executable_path = (os.path.join(self.tmp_dir, 'executable')) 58 self.AssertExpectedDirFiles(self.tmp_dir) 59 self.archive_path = self.CreateZipArchiveFromDir(self.tmp_dir) 62 if os.path.isdir(self.tmp_dir): 63 dependency_manager_util.RemoveDir(self.tmp_dir) 119 dependency_manager_util.RemoveDir(self.tmp_dir) [all …]
|
/external/autotest/client/bin/ |
D | setup_job_unittest.py | 212 tmp_dir = 'bar' 215 os.path.exists.expect_call(tmp_dir).and_return(True) 216 os.path.isdir.expect_call(tmp_dir).and_return(False) 219 self.assertRaises(ValueError, self.job.setup_dirs, results_dir, tmp_dir) 230 tmp_dir = 'bar' 233 os.path.exists.expect_call(tmp_dir).and_return(False) 234 os.mkdir.expect_call(tmp_dir) 235 os.path.isdir.expect_call(tmp_dir).and_return(True) 243 self.assertEqual(self.job.setup_dirs(None, tmp_dir), 244 (results_dir3, tmp_dir))
|
D | local_host.py | 29 for tmp_dir in self.tmp_dirs: 30 self.run('rm -rf "%s"' % (utils.sh_escape(tmp_dir)), 176 tmp_dir = self.run('mktemp -d -p "%s"' % parent).stdout.rstrip() 177 self.tmp_dirs.append(tmp_dir) 178 return tmp_dir
|
D | job.py | 407 def setup_dirs(self, results_dir, tmp_dir): argument 408 if not tmp_dir: 409 tmp_dir = os.path.join(self.tmpdir, 'build') 410 if not os.path.exists(tmp_dir): 411 os.mkdir(tmp_dir) 412 if not os.path.isdir(tmp_dir): 430 return (results_dir, tmp_dir) 433 def xen(self, base_tree, results_dir = '', tmp_dir = '', leave = False, \ argument 436 (results_dir, tmp_dir) = self.setup_dirs(results_dir, tmp_dir) 438 return xen.xen(self, base_tree, results_dir, tmp_dir, build_dir, [all …]
|
D | job_unittest.py | 376 tmp_dir = 'bar' 379 os.path.exists.expect_call(tmp_dir).and_return(True) 380 os.path.isdir.expect_call(tmp_dir).and_return(False) 383 self.assertRaises(ValueError, self.job.setup_dirs, results_dir, tmp_dir) 394 tmp_dir = 'bar' 397 os.path.exists.expect_call(tmp_dir).and_return(False) 398 os.mkdir.expect_call(tmp_dir) 399 os.path.isdir.expect_call(tmp_dir).and_return(True) 407 self.assertEqual(self.job.setup_dirs(None, tmp_dir), 408 (results_dir3, tmp_dir))
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/integration/gs/ |
D | test_resumable_downloads.py | 291 tmp_dir = self._MakeTempDir() 292 dst_fp = self.make_dst_fp(tmp_dir) 294 invalid_etag_tracker_file_name = os.path.join(tmp_dir, 313 tmp_dir = self._MakeTempDir() 314 dst_fp = self.make_dst_fp(tmp_dir) 316 inconsistent_etag_tracker_file_name = os.path.join(tmp_dir, 341 tmp_dir = self._MakeTempDir() 342 tracker_file_name = os.path.join(tmp_dir, 'tracker') 343 save_mod = os.stat(tmp_dir).st_mode 345 os.chmod(tmp_dir, 0) [all …]
|
D | test_resumable_uploads.py | 489 tmp_dir = self._MakeTempDir() 490 syntactically_invalid_tracker_file_name = os.path.join(tmp_dir, 539 tmp_dir = self._MakeTempDir() 540 tracker_file_name = self.make_tracker_file(tmp_dir) 541 save_mod = os.stat(tmp_dir).st_mode 543 os.chmod(tmp_dir, 0) 552 os.chmod(tmp_dir, save_mod)
|
/external/autotest/server/samples/ |
D | parallel_kvm.srv | 30 tmp_dir= g[0].get_tmp_dir() 31 big_file= os.path.join(tmp_dir, "big_file") 39 tmp_dir= g[i].get_tmp_dir() 40 g[i].run('scp "%s":"%s" "%s"' % (g[0].hostname, big_file, tmp_dir,)) 41 print g[i].run('sha1sum "%s"' % (os.path.join(tmp_dir, "big_file"),)).stdout.strip()
|
/external/autotest/client/site_tests/platform_DebugDaemonDumpDebugLogs/ |
D | platform_DebugDaemonDumpDebugLogs.py | 19 tmp_file = os.path.join(self.tmp_dir, filename) 40 self.tmp_dir = tempfile.mkdtemp() 43 if os.path.exists(self.tmp_dir): 44 shutil.rmtree(self.tmp_dir)
|
/external/chromium-trace/catapult/third_party/vinn/vinn/ |
D | vinn_unittest.py | 57 tmp_dir = tempfile.mkdtemp() 59 temp_file_name = os.path.join(tmp_dir, 'out_file') 66 shutil.rmtree(tmp_dir) 69 tmp_dir = tempfile.mkdtemp() 71 temp_file_name = os.path.join(tmp_dir, 'out_file') 78 shutil.rmtree(tmp_dir) 82 tmp_dir = tempfile.mkdtemp() 84 temp_file_name = os.path.join(tmp_dir, 'out_file') 90 shutil.rmtree(tmp_dir) 94 tmp_dir = tempfile.mkdtemp() [all …]
|
/external/autotest/site_utils/ |
D | brillo_aue2e_test.py | 225 def stage_payload(moblab, devserver_port, tmp_dir, use, payload_spec): argument 245 tmp_dir, _DEFAULT_STAGE_PATH_TEMPLATE % {'use': use}) 267 tmp_dir = moblab.make_tmp_dir(base=moblab_host.MOBLAB_IMAGE_STORAGE) 268 moblab.run('chown -R moblab:moblab %s' % tmp_dir) 272 payload_uri, _ = stage_payload(moblab, devserver_port, tmp_dir, 278 moblab, devserver_port, tmp_dir, 'target', args.target_payload) 283 moblab.run('rm -rf %s' % tmp_dir)
|
D | brillo_recovery_test.py | 62 tmp_dir = moblab.make_tmp_dir() 65 tmp_dir, os.path.basename(args.recovery_image)) 67 moblab.run('chown -R moblab:moblab %s' % tmp_dir) 72 moblab.run('rm -rf %s' % tmp_dir)
|
/external/icu/tools/ |
D | i18nutil.py | 21 tmp_dir = tempfile.mkdtemp('-i18n') 22 os.chdir(tmp_dir) 23 print 'Created temporary directory "%s"...' % tmp_dir
|
/external/skia/infra/bots/flavor/ |
D | default_flavor.py | 24 tmp_dir): argument 30 self._tmp_dir = tmp_dir 54 def tmp_dir(self): member in DeviceDirs 169 tmp_dir=join('tmp'))
|
/external/libcxx/test/libcxx/ndk/test/ |
D | config.py | 49 tmp_dir = getattr(self.config, 'device_dir', '/data/local/tmp/') 57 tmp_dir, 59 exec_env={'LD_LIBRARY_PATH': tmp_dir})
|
/external/libchrome/base/files/ |
D | scoped_temp_dir_unittest.cc | 58 FilePath tmp_dir; in TEST() local 59 EXPECT_TRUE(base::GetTempDir(&tmp_dir)); in TEST() 60 EXPECT_TRUE(test_path.value().find(tmp_dir.value()) != std::string::npos); in TEST()
|
/external/toybox/toys/pending/ |
D | bootchartd.c | 207 static void stop_logging(char *tmp_dir, char *prog) in stop_logging() argument 245 if (tmp_dir) { in stop_logging() 251 rmdir(tmp_dir); in stop_logging() 289 char *tmp_dir = create_tmp_dir(); in bootchartd_main() local 296 stop_logging(tmp_dir, bchartd_opt == 1 ? toys.optargs[1] : NULL); in bootchartd_main()
|
/external/valgrind/massif/ |
D | ms_print.in | 55 my $tmp_dir = $ENV{"TMPDIR"}; 56 $tmp_dir = "@VG_TMPDIR@" if (! $tmp_dir); 57 $tmp_dir = "/tmp" if (! $tmp_dir); 60 my $tmp_file = "$tmp_dir/ms_print.tmp.$$";
|
/external/autotest/server/hosts/ |
D | adb_host.py | 725 tmp_dir = self.teststation.get_tmp_dir() 726 src_path = os.path.join(tmp_dir, os.path.basename(dest)) 739 self.teststation.run('rm -rf %s' % tmp_dir) 741 logging.warn('failed to remove dir %s: %s', tmp_dir, e) 796 tmp_dir = self.teststation.get_tmp_dir() 797 dest_path = os.path.join(tmp_dir, os.path.basename(source)) 816 self.teststation.run('rm -rf %s' % tmp_dir) 818 logging.warn('failed to remove dir %s: %s', tmp_dir, e) 847 tmp_dir = self.run_output('mktemp -d -p %s' % parent) 848 self.tmp_dirs.append(tmp_dir) [all …]
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/s3/ |
D | test_uri.py | 186 tmp_dir = tempfile.tempdir or '' 187 uri_str = 'file://%s' % urllib.request.pathname2url(tmp_dir) 194 self.assertEqual(tmp_dir, uri.object_name) 207 tmp_dir = tempfile.tempdir or '' 208 uri_str = '%s' % urllib.request.pathname2url(tmp_dir) 212 self.assertEqual('file://%s' % tmp_dir, uri.uri) 215 self.assertEqual(tmp_dir, uri.object_name)
|
/external/autotest/server/brillo/feedback/ |
D | closed_loop_audio_client.py | 84 self.tmp_dir = None 105 _, self.orig_policy = tempfile.mkstemp(dir=self.tmp_dir) 110 _, test_policy = tempfile.mkstemp(dir=self.tmp_dir) 155 self.tmp_dir = test.tmpdir 245 self.local_tmp_dir = tempfile.mkdtemp(dir=self.client.tmp_dir)
|
/external/autotest/client/virt/tests/ |
D | file_transfer.py | 30 tmp_dir = params.get("tmp_dir", "/tmp/") 41 guest_path = (tmp_dir + "file_transfer-%s" %
|
/external/chromium-trace/catapult/third_party/gsutil/gslib/tests/ |
D | test_hash.py | 63 tmp_dir = self.CreateTempDir(test_files=num_test_files) 64 stdout = self.RunCommand('hash', args=[os.path.join(tmp_dir, '*')],
|