diff options
Diffstat (limited to 'tools/coverage/FilterLCovData.py')
-rwxr-xr-x | tools/coverage/FilterLCovData.py | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/tools/coverage/FilterLCovData.py b/tools/coverage/FilterLCovData.py deleted file mode 100755 index 8d56a7f..0000000 --- a/tools/coverage/FilterLCovData.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python - -# TODO: Add uncovered non-ignored files - -import sys, re, os.path - -assert(len(sys.argv) == 2) - -def isIgnored(file) : - return (find.find("/Swiften/") == -1 and find.find("/Slimber/") == -1 and find.find("/Swift/") == -1) or (find.find("/UnitTest/") != -1 or find.find("/QA/") != -1) - - -output = [] -inputFile = open(sys.argv[1]) -inIgnoredFile = False -for line in inputFile.readlines() : - if inIgnoredFile : - if line == "end_of_record\n" : - inIgnoredFile = False - else : - if line.startswith("SF:") and isIgnored(line) : - inIgnoredFile = True - else : - m = re.match("SF:(.*)", line) - if m : - line = "SF:" + os.path.realpath(m.group(1)) + "\n" - output.append(line) -inputFile.close() - -outputFile = open(sys.argv[1], 'w') -outputFile.write(''.join(output)) -outputFile.close() |