AI 145095: am: CL 144902 Fix default src lookup for code coverage.
Original author: brettchabot Merged from: //branches/cupcake/... Automated import of CL 145095
This commit is contained in:
committed by
The Android Open Source Project
parent
2b6643b596
commit
134d899218
@@ -120,6 +120,9 @@ class CoverageTarget:
|
||||
|
||||
def _ParsePaths(self, target_element):
|
||||
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:
|
||||
rel_path = src_element.getAttribute(self._PATH_ATTR)
|
||||
self._paths.append(os.path.join(self.GetBuildPath(), rel_path))
|
||||
|
||||
Reference in New Issue
Block a user