From 197a70aab22e432ff4daef5411eb27280970b6f6 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Mon, 14 Apr 2014 18:36:50 +0000 Subject: [PATCH] Fix to coverage data collection Skip all the test_problem subdirectories to avoid generating a command line that is too long for some versions of lcov to handle properly. --- platform/posix/coverage.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/posix/coverage.py b/platform/posix/coverage.py index e4be1c517..4ff08a231 100755 --- a/platform/posix/coverage.py +++ b/platform/posix/coverage.py @@ -15,6 +15,8 @@ def getDirectories(): sourcedirs = set() rootdir = os.getcwd() for dirpath, dirnames, filenames in os.walk(rootdir): + if 'test_problems' in dirpath or '/ext/' in dirpath: + continue for fname in filenames: if fname.endswith('.gcda'): dirpath.replace(rootdir, '', 1)