Skip to content

Commit 64c0d26

Browse files
committed
coverage: add gcovr version specific diff
Add diff specific to the 3.4 version of gcovr. This will allow us to avoid breaking coverage in older node versions when we chose to update the version of gcovr that we are using. PR-URL: #1162 Reviewed-By: Gibson Fahnestock <[email protected]>
1 parent 4452442 commit 64c0d26

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
diff --git a/scripts/gcovr b/scripts/gcovr
2+
index 034779c86d29..e68b239c424f 100755
3+
--- a/scripts/gcovr
4+
+++ b/scripts/gcovr
5+
@@ -496,7 +496,7 @@ def process_gcov_data(data_fname, covdata, options):
6+
if filtered_fname is None:
7+
if options.verbose:
8+
sys.stdout.write(" Filtering coverage data for file %s\n" % fname)
9+
- return
10+
+ #return
11+
#
12+
# Return if the filename matches the exclude pattern
13+
#
14+
@@ -2141,6 +2141,9 @@ if options.objdir:
15+
for i in range(0, len(options.exclude)):
16+
options.exclude[i] = re.compile(options.exclude[i])
17+
18+
+if options.output is not None:
19+
+ options.output = os.path.abspath(options.output)
20+
+
21+
if options.root is not None:
22+
if not options.root:
23+
sys.stderr.write(

0 commit comments

Comments
 (0)