Update compare_gcov.py

This commit is contained in:
Ye Luo 2020-09-08 14:09:50 -05:00
parent 2da2d3def5
commit bae0f4aabe
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ ENDFUNCTION()
# Remove unwanted gcov files (files in /usr, unit tests, files with coverage only in static initializers, etc.)
FUNCTION(FILTER_GCOV GCOV_DIR)
EXECUTE_PROCESS(COMMAND python ${CTEST_SOURCE_DIRECTORY}/tests/coverage/compare_gcov.py --action process --base-dir ${GCOV_DIR})
EXECUTE_PROCESS(COMMAND ${CTEST_SOURCE_DIRECTORY}/tests/coverage/compare_gcov.py --action process --base-dir ${GCOV_DIR})
ENDFUNCTION()

2
tests/coverage/compare_gcov.py Normal file → Executable file
View File

@ -1,4 +1,4 @@
from __future__ import print_function
#! /usr/bin/env python3
import argparse
from collections import OrderedDict, namedtuple, defaultdict