Merge pull request #565 from danvk/gulp
[dygraphs.git] / auto_tests / misc / filter-lcov.py
diff --git a/auto_tests/misc/filter-lcov.py b/auto_tests/misc/filter-lcov.py
deleted file mode 100755 (executable)
index 2d95a3a..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/usr/bin/env python
-"""Remove unwanted files from LCOV data.
-
-jstd and node-coveralls won't do this themselves, so we have to!
-
-Usage:
-    cat lcov.dat | ./filter-lcov.py > filtered-lcov.dat
-"""
-
-import fileinput
-import re
-
-# Exclude paths which match any of these regular expressions.
-exclude_res = [
-    re.compile(r'auto_tests')
-]
-
-def is_ok(path):
-    for regex in exclude_res:
-        if re.search(regex, path):
-            return False
-    return True
-
-
-writing = False
-for line in fileinput.input():
-    line = line.strip();
-    if line.startswith('SF:'):
-        path = line[3:]
-        writing = is_ok(path)
-    if writing:
-        print line