/external/chromium-trace/catapult/telemetry/telemetry/wpr/ |
D | archive_info_unittest.py | 68 self.tmp_dir = tempfile.mkdtemp() 71 self.tmp_dir, 'info.json') 75 shutil.rmtree(self.tmp_dir) 92 with open(os.path.join(self.tmp_dir, wpr_file), 'w') as f: 114 {os.path.join(self.tmp_dir, recording1): "dummyhash1", 115 os.path.join(self.tmp_dir, recording2): "dummyhash2", 116 os.path.join(self.tmp_dir, recording3): "dummyhash3", 117 os.path.join(self.tmp_dir, recording4): "dummyhash4",}) 134 {os.path.join(self.tmp_dir, recording1): "dummyhash1", 135 os.path.join(self.tmp_dir, recording2): "dummyhash2", [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/toolchain-utils/ |
D | verify_compiler.py | 58 def VerifyArgs(compiler, filename, tmp_dir, root_dir, options, parser): argument 81 if not os.path.exists(tmp_dir): 82 os.makedirs(tmp_dir) 85 def CheckFile(filename, compiler, tmp_dir, options, cmd_executer): argument 98 dwarf_file = os.path.join(tmp_dir, tmp_name) 179 tmp_dir = '/tmp' 180 if options.tmp_dir: 181 tmp_dir = os.path.realpath(os.path.expanduser(options.tmp_dir)) 186 VerifyArgs(compiler, filename, tmp_dir, root_dir, options, parser) 198 result = CheckFile(f, compiler, tmp_dir, options, cmd_executer)
|
/external/ltp/lib/tests/ |
D | tst_tmpdir_test.c | 51 char *tmp_dir; in main() local 58 tmp_dir = tst_get_tmpdir(); in main() 61 if (strcmp(tmp_dir, changed_dir) == 0 && in main() 62 strcmp(tmp_dir, start_dir) != 0) { in main() 71 if (chdir(tmp_dir) == -1 && errno == ENOENT) { in main()
|
/external/ltp/testcases/kernel/syscalls/readlink/ |
D | readlink04.c | 108 char *tmp_dir = NULL; in setup() local 118 if ((tmp_dir = getcwd(tmp_dir, 0)) == NULL) in setup() 125 if (chown(tmp_dir, pwent->pw_uid, pwent->pw_gid) == -1) in setup() 128 if (chmod(tmp_dir, 0711) != 0) in setup() 129 tst_brkm(TBROK|TERRNO, cleanup, "chmod(%s) failed", tmp_dir); in setup()
|
/external/lz4/tests/ |
D | test-lz4-versions.py | 58 tmp_dir = base_dir + '/' + tmp_dir_name # /path/to/lz4/tests/versionsTest variable 59 clone_dir = tmp_dir + '/' + 'lz4' # /path/to/lz4/tests/versionsTest/lz4 61 os.makedirs(tmp_dir, exist_ok=True) 67 shutil.copy2(base_dir + '/' + test_dat_src, tmp_dir + '/' + test_dat) 78 dst_lz4c = '{}/lz4c.{}' .format(tmp_dir, tag) # /path/to/lz4/test/lz4test/lz4c.<TAG> 79 dst_lz4c32 = '{}/lz4c32.{}'.format(tmp_dir, tag) # /path/to/lz4/test/lz4test/lz4c32.<TAG> 82 r_dir = '{}/{}'.format(tmp_dir, tag) # /path/to/lz4/test/lz4test/<TAG> 96 os.chdir(tmp_dir)
|
/external/autotest/site_utils/sponge_lib/ |
D | sponge_utils_functional_test.py | 72 self.tmp_dir = tempfile.mkdtemp() 73 self.resultsdir = os.path.join(self.tmp_dir, 76 with open(os.path.join(self.tmp_dir, '123-debug_user/host1', 86 shutil.rmtree(self.tmp_dir) 93 test.resultsdir = os.path.join(self.tmp_dir, 131 job.dir = os.path.join(self.tmp_dir, '123-debug_user/host1')
|
/external/autotest/client/bin/ |
D | setup_job_unittest.py | 210 tmp_dir = 'bar' 213 os.path.exists.expect_call(tmp_dir).and_return(True) 214 os.path.isdir.expect_call(tmp_dir).and_return(False) 217 self.assertRaises(ValueError, self.job.setup_dirs, results_dir, tmp_dir) 228 tmp_dir = 'bar' 231 os.path.exists.expect_call(tmp_dir).and_return(False) 232 os.mkdir.expect_call(tmp_dir) 233 os.path.isdir.expect_call(tmp_dir).and_return(True) 241 self.assertEqual(self.job.setup_dirs(None, tmp_dir), 242 (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)), 205 tmp_dir = self.run('mktemp -d -p "%s"' % parent).stdout.rstrip() 206 self.tmp_dirs.append(tmp_dir) 207 return tmp_dir
|
D | job_unittest.py | 330 tmp_dir = 'bar' 333 os.path.exists.expect_call(tmp_dir).and_return(True) 334 os.path.isdir.expect_call(tmp_dir).and_return(False) 337 self.assertRaises(ValueError, self.job.setup_dirs, results_dir, tmp_dir) 348 tmp_dir = 'bar' 351 os.path.exists.expect_call(tmp_dir).and_return(False) 352 os.mkdir.expect_call(tmp_dir) 353 os.path.isdir.expect_call(tmp_dir).and_return(True) 361 self.assertEqual(self.job.setup_dirs(None, tmp_dir), 362 (results_dir3, tmp_dir))
|
/external/libchrome/base/ |
D | os_compat_android_unittest.cc | 19 FilePath tmp_dir; in TEST_F() local 20 EXPECT_TRUE(base::GetTempDir(&tmp_dir)); in TEST_F() 23 FilePath sub_dir = tmp_dir.Append("XX"); in TEST_F() 34 FilePath sub_dir2 = tmp_dir.Append("XXXXXX"); in TEST_F()
|
/external/autotest/site_utils/ |
D | hwid_lib_unittest.py | 24 self.tmp_dir = tempfile.mkdtemp(prefix='hwid_test') 26 self.dummy_key_file = os.path.join(self.tmp_dir, 'dummy_key') 29 self.dummy_key_file_spaces = os.path.join(self.tmp_dir, 33 self.dummy_key_file_newline = os.path.join(self.tmp_dir, 37 self.invalid_dummy_key_file = os.path.join(self.tmp_dir, 43 if os.path.exists(self.tmp_dir): 44 shutil.rmtree(self.tmp_dir)
|
/external/skia/infra/bots/recipe_modules/flavor/ |
D | api.py | 132 def _copy_dir(self, host_version, version_file, tmp_dir, argument 135 actual_version_file = self.m.path.join(tmp_dir, version_file) 138 self.device_dirs.tmp_dir, version_file) 164 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_SK_IMAGE), 169 self.m.vars.tmp_dir, 191 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_SKP), 196 self.m.vars.tmp_dir, 216 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_SVG), 221 self.m.vars.tmp_dir,
|
D | default_flavor.py | 26 tmp_dir): argument 33 self._tmp_dir = tmp_dir 62 def tmp_dir(self): member in DeviceDirs 148 tmp_dir=self.m.vars.tmp_dir)
|
/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/ltp/testcases/kernel/fs/ext4-new-features/ext4-online-defrag/ |
D | ext4_online_defrag_test.sh | 51 mkdir mnt_point/tmp_dir 52 echo "abc" > mnt_point/tmp_dir/tmp_file 72 mkdir mnt_point/tmp_dir 73 dest=mnt_point/tmp_dir/tmp_file 104 $E4DEFRAG -v mnt_point/tmp_dir
|
/external/skia/infra/bots/recipe_modules/upload_dm_results/ |
D | api.py | 48 tmp_dir = self.m.path['start_dir'].join('tmp_upload') 49 self.m.shutil.makedirs('tmp dir', tmp_dir, infra_step=True) 50 self.m.shutil.copy('copy dm.json', json_file, tmp_dir) 51 self.m.shutil.copy('copy verbose.log', log_file, tmp_dir) 90 self.cp('JSON and logs', tmp_dir.join('*'), summary_dest_path,
|
/external/autotest/server/ |
D | adb_utils.py | 70 tmp_dir = host.teststation.get_tmp_dir() 72 host.download_file(apk_url, apk, tmp_dir) 73 result = host.install_apk(os.path.join(tmp_dir, apk), 81 host.teststation.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/ |
D | zip_utils_test.py | 23 with utils.tmp_dir(): 43 with utils.tmp_dir(): 68 with utils.tmp_dir():
|
/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 | 208 static void stop_logging(char *tmp_dir, char *prog) in stop_logging() argument 246 if (tmp_dir) { in stop_logging() 252 rmdir(tmp_dir); in stop_logging() 290 char *tmp_dir = create_tmp_dir(); in bootchartd_main() local 297 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.$$";
|