Home
last modified time | relevance | path

Searched refs:old_path (Results 1 – 25 of 31) sorted by relevance

12

/external/ltp/testcases/kernel/fs/mongo/
Dmongo_slinks.c22 char *old_path; in main() local
40 old_path = strtok(line_buffer, "\t "); in main()
43 if (!old_path || !new_path) /* empty lines at the end of file */ in main()
47 if (symlink(old_path, new_path) != 0) { in main()
/external/python/cpython3/Tools/scripts/
Dupdate_file.py13 def main(old_path, new_path): argument
14 with open(old_path, 'rb') as f:
19 os.replace(new_path, old_path)
/external/elfutils/tests/
Dtest-wrapper.sh41 old_path="${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
51 LD_LIBRARY_PATH="$built_library_path$old_path"
56 LD_LIBRARY_PATH="${libdir}:${libdir}/elfutils$old_path"
/external/chromium-trace/catapult/common/py_utils/py_utils/
Dshell_util.py17 old_path = _os.getcwd()
23 _os.chdir(old_path)
24 print('> cd', old_path)
/external/pdfium/core/fpdfapi/page/
Dcpdf_clippath.cpp80 const CPDF_Path& old_path = pData->m_PathAndTypeList.back().first; in AppendPath() local
81 if (old_path.IsRect()) { in AppendPath()
82 CFX_PointF point0 = old_path.GetPoint(0); in AppendPath()
83 CFX_PointF point2 = old_path.GetPoint(2); in AppendPath()
/external/autotest/server/site_tests/firmware_Cr50RejectUpdate/
Dfirmware_Cr50RejectUpdate.py43 self.old_path = self.download_cr50_release_image(self.OLD_IMAGE_VER)[0]
93 self.try_update('-u', self.old_path, stdout='nothing to do')
97 self.try_update('', self.old_path, err=8)
/external/python/cpython3/Lib/test/test_zoneinfo/
D_support.py90 old_path = self.module.TZPATH
100 self.module.reset_tzpath(old_path)
/external/python/cpython3/Lib/test/
Dtest_modulefinder.py393 old_path = os.path.join(TEST_DIR, 'a', 'module.py')
397 replace_paths=[(old_path, new_path)])
399 expected = "co_filename %r changed to %r" % (old_path, new_path)
Dtest_pkgutil.py455 self.old_path = sys.path[:]
458 sys.path[:] = self.old_path
/external/crosvm/bin/
Dsync_ebuild_files99 old_path = ebuild_file_path(package, old_version)
102 os.rename(old_path, new_path)
/external/llvm-project/clang/utils/analyzer/
DSATestBenchmark.py77 def compare(old_path: str, new_path: str, plot_file: str):
82 old = _load(old_path)
/external/python/cpython2/PC/VS9.0/
Dbuild_ssl.py170 old_path = os.environ['PATH']
171 os.environ['PATH'] = os.pathsep.join([nasm_dir, old_path])
/external/python/cpython3/Lib/
Dntpath.py558 old_path = path
566 if not islink(old_path):
567 path = old_path
569 path = normpath(join(dirname(old_path), path))
/external/selinux/python/sepolicy/sepolicy/
Dmanpage.py192 self.old_path = path + "/"
193 self.new_path = self.old_path + self.os_version + "/"
214 … convert_manpage_to_html((self.new_path + d.rsplit("_selinux", 1)[0] + ".html"), self.old_path + d)
219 … convert_manpage_to_html((self.new_path + r.rsplit("_selinux", 1)[0] + ".html"), self.old_path + r)
222 index = self.old_path + "index.html"
339 style_css = self.old_path + "style.css"
/external/python/setuptools/setuptools/command/
Dtest.py156 old_path = sys.path[:]
168 sys.path[:] = old_path
/external/python/pyfakefs/pyfakefs/tests/
Dfake_os_test.py1009 for old_path, new_path in [('wxyyw', 'xyzzy'), ('abccb', 'cdeed')]:
1010 old_path = self.make_path(old_path)
1012 self.create_file(self.os.path.join(old_path, 'plugh'),
1014 self.assertTrue(self.os.path.exists(old_path))
1016 self.os.rename(old_path, new_path)
1017 self.assertFalse(self.os.path.exists(old_path))
1043 old_path = self.make_path('foo', 'bar')
1045 self.create_dir(old_path)
1047 self.assert_raises_os_error(errno.EEXIST, self.os.rename, old_path,
1077 old_path = self.make_path('foo', 'bar')
[all …]
/external/python/cpython3/Lib/distutils/
D_msvccompiler.py504 old_path = os.getenv('path')
509 os.environ['path'] = old_path
/external/python/cpython3/Lib/distutils/tests/
Dtest_sdist.py62 self.old_path = os.getcwd()
73 os.chdir(self.old_path)
/external/python/cpython2/Lib/distutils/tests/
Dtest_sdist.py64 self.old_path = os.getcwd()
75 os.chdir(self.old_path)
/external/rust/crates/nix/test/
Dtest_fcntl.rs52 let old_path = old_dir.path().join("old"); in test_renameat() localVariable
53 File::create(&old_path).unwrap(); in test_renameat()
/external/python/pyfakefs/pyfakefs/
Dfake_pathlib.py125 lambda fs, old_path, new_path: FakeFilesystem.rename(
126 fs, old_path, new_path, force_replace=True))
Dfake_filesystem.py2632 def link(self, old_path, new_path, follow_symlinks=True): argument
2661 if self.ends_with_path_separator(old_path):
2663 self.raise_os_error(error, old_path)
2666 self.raise_os_error(errno.ENOENT, old_path)
2670 old_file = self.resolve(old_path, follow_symlinks=follow_symlinks)
2672 self.raise_os_error(errno.ENOENT, old_path)
2676 errno.EACCES if self.is_windows_fs else errno.EPERM, old_path)
/external/ltp/lib/
Dtst_test.c1065 char *old_path = getenv("PATH"); in add_paths() local
1071 if (old_path) in add_paths()
1072 SAFE_ASPRINTF(&new_path, "%s::%s", old_path, start_dir); in add_paths()
/external/rust/crates/nix/src/
Dfcntl.rs192 old_path: &P1, in renameat()
196 let res = old_path.with_nix_path(|old_cstr| { in renameat()
/external/llvm-project/lldb/source/Commands/
DCommandObjectProcess.cpp419 char old_path[PATH_MAX]; in DoExecute() local
421 old_exec_module_sp->GetFileSpec().GetPath(old_path, PATH_MAX); in DoExecute()
425 "Executable module changed from \"%s\" to \"%s\".\n", old_path, in DoExecute()

12