Home
last modified time | relevance | path

Searched refs:full_path (Results 1 – 25 of 56) sorted by relevance

123

/external/python/cpython2/Lib/unittest/
Dloader.py211 full_path = os.path.abspath(module.__file__)
213 if os.path.basename(full_path).lower().startswith('__init__.py'):
214 return os.path.dirname(os.path.dirname(full_path))
219 return os.path.dirname(full_path)
235 def _match_path(self, path, full_path, pattern): argument
244 full_path = os.path.join(start_dir, path)
245 if os.path.isfile(full_path):
249 if not self._match_path(path, full_path, pattern):
252 name = self._get_name_from_path(full_path)
258 mod_file = os.path.abspath(getattr(module, '__file__', full_path))
[all …]
/external/python/cpython3/Lib/unittest/
Dloader.py346 full_path = os.path.abspath(module.__file__)
348 if os.path.basename(full_path).lower().startswith('__init__.py'):
349 return os.path.dirname(os.path.dirname(full_path))
354 return os.path.dirname(full_path)
372 def _match_path(self, path, full_path, pattern): argument
396 full_path = os.path.join(start_dir, path)
398 full_path, pattern, namespace)
403 name = self._get_name_from_path(full_path)
406 yield from self._find_tests(full_path, pattern, namespace)
410 def _find_test_path(self, full_path, pattern, namespace=False): argument
[all …]
/external/fio/oslib/
Dlinux-dev-lookup.c23 char full_path[256]; in blktrace_lookup_device() local
28 sprintf(full_path, "%s/%s", path, dir->d_name); in blktrace_lookup_device()
29 if (lstat(full_path, &st) == -1) { in blktrace_lookup_device()
35 found = blktrace_lookup_device(redirect, full_path, in blktrace_lookup_device()
38 strcpy(path, full_path); in blktrace_lookup_device()
58 strcpy(path, full_path); in blktrace_lookup_device()
/external/jsoncpp/devtools/
Dantglob.py114 def apply_filter( full_path, filter_rexs ): argument
117 if rex.match( full_path ):
126 full_path = os.path.join( dir_path, entry )
128 is_dir = os.path.isdir( full_path )
131 child_dirs.append( full_path )
132 included = apply_filter( full_path, include_filter )
133 rejected = apply_filter( full_path, exclude_filter )
137 link = os.path.islink( full_path )
138 is_file = os.path.isfile( full_path )
/external/f2fs-tools/fsck/
Dsload.c129 ret = lstat(de->full_path, &stat); in set_inode_metadata()
151 ret = readlink(de->full_path, de->link, F2FS_BLKSIZE - 1); in set_inode_metadata()
169 static int build_directory(struct f2fs_sb_info *sbi, const char *full_path, in build_directory() argument
178 entries = scandir(full_path, &namelist, filter_dot, (void *)alphasort); in build_directory()
180 ERR_MSG("No entries in %s\n", full_path); in build_directory()
199 ret = asprintf(&dentries[i].full_path, "%s/%s", in build_directory()
200 full_path, namelist[i]->d_name); in build_directory()
221 dentries[i].full_path); in build_directory()
246 free(dentries[i].full_path); in build_directory()
/external/dtc/tests/
Dpath_offset_aliases.c31 static void check_alias(void *fdt, const char *full_path, const char *alias_path) in check_alias() argument
35 offset = fdt_path_offset(fdt, full_path); in check_alias()
40 full_path, offset, alias_path, offset_a); in check_alias()
/external/python/cpython2/Lib/unittest/test/
Dtest_discovery.py150 full_path = os.path.abspath(os.path.normpath('/foo'))
154 self.assertEqual(loader._top_level_dir, full_path)
155 self.assertIn(full_path, sys.path)
322 full_path = os.path.abspath('foo')
332 if full_path in sys.path:
333 sys.path.remove(full_path)
345 return full_path
348 full_path = self.setup_module_clash()
359 self.assertEqual(sys.path[0], full_path)
362 full_path = self.setup_module_clash()
/external/libmojo/mojo/public/tools/bindings/pylib/mojom/generate/
Dgenerator.py27 def WriteFile(contents, full_path): argument
29 full_dir = os.path.dirname(full_path)
33 with open(full_path, "w+") as f:
81 full_path = os.path.join(self.output_dir, filename)
82 WriteFile(contents, full_path)
/external/tensorflow/tensorflow/tools/common/
Dpublic_api.py125 full_path = '.'.join([self._root_name, path]) if path else self._root_name
129 if self._is_private(full_path, name):
136 if self._do_not_descend(full_path, name):
/external/libchrome/base/files/
Dfile_enumerator_posix.cc96 FilePath full_path = root_path_.Append(i->filename_); in Next() local
97 if (ShouldSkip(full_path)) in Next()
101 fnmatch(pattern_.c_str(), full_path.value().c_str(), FNM_NOESCAPE)) in Next()
105 pending_paths_.push(full_path); in Next()
/external/v8/tools/sanitizers/
Dsancov_formatter_test.py216 full_path = os.path.join(output_dir, file_name)
217 self.assertTrue(os.path.exists(full_path))
218 with open(full_path) as f:
/external/autotest/server/hosts/
Dteststation_host.py154 full_path = readlink_result.stdout.splitlines()[0]
157 unzip_dest = unzip_dest or os.path.dirname(full_path)
160 return full_path
/external/autotest/site_utils/
Dacts_lib.py356 full_path = self.container.upload_file(full_name, full_name)
357 self.configs[config_file] = full_path
359 return full_path
374 full_path = self.container.upload_file(full_name, full_name)
375 self.campaigns[campaign_file] = full_path
377 return full_path
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common.cc57 internal_snprintf(full_path, kMaxPathLength, "%s.%s.%zu", path_prefix, in ReopenIfNecessary()
60 internal_snprintf(full_path, kMaxPathLength, "%s.%zu", path_prefix, pid); in ReopenIfNecessary()
62 fd = OpenFile(full_path, WrOnly); in ReopenIfNecessary()
66 WriteToFile(kStderrFd, full_path, internal_strlen(full_path)); in ReopenIfNecessary()
/external/tensorflow/tensorflow/tools/docs/
Dgenerate_lib.py341 def process(self, full_path, base_name): argument
343 self.full_path = full_path
348 py_guide_parser.PyGuideParser.process(self, full_path)
372 for full_path, base_name in py_guide_parser.md_files_in_dir(guide_src_dir):
373 index_generator.process(full_path, base_name)
Dpy_guide_parser.py45 def process(self, full_path): argument
47 md_string = open(full_path).read()
/external/libpcap/
Dpcap-usb-linux.c383 char full_path[USB_LINE_LEN]; in usb_activate() local
406 pcap_snprintf(full_path, USB_LINE_LEN, LINUX_USB_MON_DEV"%d", handlep->bus_index); in usb_activate()
407 handle->fd = open(full_path, O_RDONLY, 0); in usb_activate()
445 pcap_snprintf(full_path, USB_LINE_LEN, USB_TEXT_DIR"/%dt", handlep->bus_index); in usb_activate()
446 handle->fd = open(full_path, O_RDONLY, 0); in usb_activate()
455 pcap_snprintf(full_path, USB_LINE_LEN, USB_TEXT_DIR_OLD"/%dt", handlep->bus_index); in usb_activate()
456 handle->fd = open(full_path, O_RDONLY, 0); in usb_activate()
461 "Can't open USB bus file %s: %s", full_path, strerror(errno)); in usb_activate()
/external/python/cpython3/Lib/email/
Dcontentmanager.py46 full_path = '.'.join((modname, qname)) if modname else qname
48 full_path_for_error = full_path
49 if full_path in self.set_handlers:
50 return self.set_handlers[full_path]
/external/jsoncpp/
Ddoxybuild.py21 full_path = os.path.join(directory, name)
22 if os.path.isfile(full_path):
23 return full_path
/external/python/cpython3/Lib/unittest/test/
Dtest_discovery.py382 full_path = os.path.abspath(os.path.normpath('/foo'))
386 self.assertEqual(loader._top_level_dir, full_path)
387 self.assertIn(full_path, sys.path)
715 full_path = os.path.abspath('foo')
725 if full_path in sys.path:
726 sys.path.remove(full_path)
738 return full_path
741 full_path = self.setup_module_clash()
752 self.assertEqual(sys.path[0], full_path)
755 full_path = self.setup_module_clash()
/external/autotest/utils/
Dtest_importer.py130 full_path = os.path.join(autotest_dir, test.path)
131 if not os.path.isfile(full_path):
137 full_path = os.path.join(autotest_dir, "client", "profilers",
139 if not os.path.exists(full_path):
154 full_path = os.path.join(autotest_dir, test.path)
160 full_path = os.path.join(autotest_dir, "client", "profilers",
/external/ltp/testcases/kernel/syscalls/symlink/
Dsymlink01.c502 char full_path[PATH_MAX + 1 + 1]; /* Add one for '\0' and another to exceed the PATH_MAX limit, see… variable
814 strcpy(full_path, cwd); in creat_path_max()
816 strcat(full_path, path1); in creat_path_max()
818 size = strlen(full_path); in creat_path_max()
820 strcat(full_path, "/"); in creat_path_max()
822 strcat(full_path, "Z"); in creat_path_max()
837 if (strlen(full_path) == (PATH_MAX + 1)) in ck_path_max()
1310 TEST(symlink(tc_ptr->fn_arg[0], full_path)); in do_ENAMETOOLONG()
1313 if (see_if_a_symlink(full_path) == -1) { in do_ENAMETOOLONG()
1331 ret = readlink(full_path, scratch, strlen(full_path)); in do_ENAMETOOLONG()
/external/webrtc/webrtc/base/
Dhttpcommon_unittest.cc32 EXPECT_STREQ(TEST_PATH TEST_QUERY, url.full_path().c_str()); in TEST()
46 EXPECT_STREQ(TEST_PATH TEST_QUERY, url.full_path().c_str()); in TEST()
69 EXPECT_STREQ(TEST_PATH TEST_QUERY, url.full_path().c_str()); in TEST()
/external/fio/
Ddiskutil.c366 char full_path[256]; in find_block_dir() local
371 sprintf(full_path, "%s/%s", path, dir->d_name); in find_block_dir()
374 if (!check_dev_match(majdev, mindev, full_path)) { in find_block_dir()
381 if (stat(full_path, &st) == -1) { in find_block_dir()
386 if (lstat(full_path, &st) == -1) { in find_block_dir()
395 found = find_block_dir(majdev, mindev, full_path, 0); in find_block_dir()
397 strcpy(path, full_path); in find_block_dir()
/external/boringssl/src/util/bot/go/
Dbootstrap.py281 full_path = os.path.join(root, basename + EXE_SFX)
282 if os.path.exists(full_path):
283 return full_path

123