소스 검색

[Test] Try to fix gcov invocation with new toolchain

tags/2.6
Vsevolod Stakhov 3 년 전
부모
커밋
23ef4989eb
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3
    3
      test/tools/gcov_coveralls.py

+ 3
- 3
test/tools/gcov_coveralls.py 파일 보기

@@ -46,7 +46,7 @@ def warn(*args, **kwargs):


def parse_gcov_file(gcov_file):
"""Parses the content of .gcov file written by gcov --intermediate-format
"""Parses the content of .gcov file written by gcov -i

Returns:
str: Source file name
@@ -72,13 +72,13 @@ def run_gcov(filename, coverage, args):
* delete .gcov files
"""
if args.verbose:
warn("calling:", 'gcov', '--intermediate-format', filename)
warn("calling:", 'gcov', '-i', filename)
stdout = None
else:
# gcov is noisy and don't have quit flag so redirect stdout to /dev/null
stdout = subprocess.DEVNULL

subprocess.check_call(['gcov', '--intermediate-format', filename], stdout=stdout)
subprocess.check_call(['gcov', '-i', filename], stdout=stdout)

for gcov_file in glob('*.gcov'):
if args.verbose:

Loading…
취소
저장