AI 145161: am: CL 145095 am: CL 144902 Fix default src lookup for code coverage.
Original author: brettchabot Merged from: //branches/cupcake/... Original author: android-build Automated import of CL 145161
This commit is contained in:
committed by
The Android Open Source Project
parent
c28739a303
commit
eb42174923
@@ -120,6 +120,9 @@ class CoverageTarget:
|
|||||||
|
|
||||||
def _ParsePaths(self, target_element):
|
def _ParsePaths(self, target_element):
|
||||||
src_elements = target_element.getElementsByTagName(self._SRC_TAG)
|
src_elements = target_element.getElementsByTagName(self._SRC_TAG)
|
||||||
|
if len(src_elements) <= 0:
|
||||||
|
# no src tags specified. Assume build_path + src
|
||||||
|
self._paths.append(os.path.join(self.GetBuildPath(), "src"))
|
||||||
for src_element in src_elements:
|
for src_element in src_elements:
|
||||||
rel_path = src_element.getAttribute(self._PATH_ATTR)
|
rel_path = src_element.getAttribute(self._PATH_ATTR)
|
||||||
self._paths.append(os.path.join(self.GetBuildPath(), rel_path))
|
self._paths.append(os.path.join(self.GetBuildPath(), rel_path))
|
||||||
|
|||||||
Reference in New Issue
Block a user