Home
last modified time | relevance | path

Searched refs:tmp_dir (Results 1 – 25 of 39) sorted by relevance

12

/external/chromium-trace/catapult/telemetry/telemetry/wpr/
Darchive_info_unittest.py40 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/
Ddma_memtest.py100 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/
Ddependency_manager_util_unittest.py24 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/
Dsetup_job_unittest.py212 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))
Dlocal_host.py29 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
Djob.py407 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 …]
Djob_unittest.py376 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/
Dtest_resumable_downloads.py291 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 …]
Dtest_resumable_uploads.py489 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/
Dparallel_kvm.srv30 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/
Dplatform_DebugDaemonDumpDebugLogs.py19 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/
Dvinn_unittest.py57 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/
Dbrillo_aue2e_test.py225 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)
Dbrillo_recovery_test.py62 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/
Di18nutil.py21 tmp_dir = tempfile.mkdtemp('-i18n')
22 os.chdir(tmp_dir)
23 print 'Created temporary directory "%s"...' % tmp_dir
/external/skia/infra/bots/flavor/
Ddefault_flavor.py24 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/
Dconfig.py49 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/
Dscoped_temp_dir_unittest.cc58 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/
Dbootchartd.c207 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/
Dms_print.in55 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/
Dadb_host.py725 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/
Dtest_uri.py186 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/
Dclosed_loop_audio_client.py84 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/
Dfile_transfer.py30 tmp_dir = params.get("tmp_dir", "/tmp/")
41 guest_path = (tmp_dir + "file_transfer-%s" %
/external/chromium-trace/catapult/third_party/gsutil/gslib/tests/
Dtest_hash.py63 tmp_dir = self.CreateTempDir(test_files=num_test_files)
64 stdout = self.RunCommand('hash', args=[os.path.join(tmp_dir, '*')],

12