Lines Matching refs:self
34 def FindTests(self, path): argument
76 self._build_top = os.path.realpath(android_build.GetTop())
77 if not self._IsPathInBuildTree(realpath):
79 (path, self._build_top))
84 tests = self._FindSubTests(realpath, [])
87 tests = self._FindUpstreamTests(realpath)
90 def _IsPathInBuildTree(self, path): argument
99 return os.path.commonprefix([self._build_top, path]) == self._build_top
101 def _MakePathRelativeToBuild(self, path): argument
113 if not self._IsPathInBuildTree(path):
115 build_path_len = len(self._build_top) + 1
119 def _FindSubTests(self, path, tests, upstream_build_path=None): argument
135 build_rel_path = self._MakePathRelativeToBuild(path)
139 tests.extend(self._CreateSuites(
142 tests.extend(self._CreateSuites(android_mk_parser, path,
158 upstream_build_path = self._MakePathRelativeToBuild(path)
162 self._FindSubTests(os.path.join(path, filename), tests,
166 def _FindUpstreamTests(self, path): argument
175 factory = self._FindUpstreamTestFactory(path)
181 def _GetTestFactory(self, android_mk_parser, path, build_path): argument
208 def _GetTestFactoryForPath(self, path): argument
222 build_path = self._MakePathRelativeToBuild(path)
223 return self._GetTestFactory(android_mk_parser, path, build_path)
227 def _FindUpstreamTestFactory(self, path): argument
236 factory = self._GetTestFactoryForPath(path)
240 if self._IsPathInBuildTree(path):
241 return self._FindUpstreamTestFactory(dirpath)
245 def _CreateSuites(self, android_mk_parser, path, upstream_build_path): argument
258 factory = self._GetTestFactory(android_mk_parser, path,