diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-07-24 18:09:29 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-07-24 18:09:29 (GMT) |
commit | f6e73393afbe7ce8d1a5c5fc55565582cb8906cc (patch) | |
tree | b50fe99468a518e705d9ef3b8a1ae1638a07b3dc /tools/coverage | |
parent | 0dd979a856719f16925f84d6be532bd31044fa82 (diff) | |
download | swift-f6e73393afbe7ce8d1a5c5fc55565582cb8906cc.zip swift-f6e73393afbe7ce8d1a5c5fc55565582cb8906cc.tar.bz2 |
Update the build system.
Coverage now works better.
Some files are cleaned by default (without the need of CLEANFILES).
Diffstat (limited to 'tools/coverage')
-rwxr-xr-x | tools/coverage/FilterLCovData.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/coverage/FilterLCovData.py b/tools/coverage/FilterLCovData.py index 8b8d24e..b1dd74e 100755 --- a/tools/coverage/FilterLCovData.py +++ b/tools/coverage/FilterLCovData.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -import sys, re +import sys, re, os.path assert(len(sys.argv) == 2) @@ -15,8 +15,9 @@ for line in inputFile.readlines() : if line.startswith("SF:") and (line.find("/Swiften/") == -1 or line.find("/UnitTest/") != -1 or line.find("/QA/") != -1 or line.find("/3rdParty/") != -1): inIgnoredFile = True else : - if line.startswith("SF:") : - line = line.replace("/./Swiften/", "/Swiften/") + m = re.match("SF:(.*)", line) + if m : + line = "SF:" + os.path.realpath(m.group(1)) + "\n" output.append(line) inputFile.close() |