summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tools/coverage')
-rwxr-xr-xtools/coverage/FilterLCovData.py7
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()