Skip to content
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.

Commit

Permalink
trying to get the sanitization to work here
Browse files Browse the repository at this point in the history
  • Loading branch information
klemens-morgenstern committed Nov 12, 2018
1 parent 317801c commit c2ee6da
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ before_install:

script:
# `--coverage` flags required to generate coverage info for Coveralls
- ../../../b2 with-valgrind address-model=64 architecture=x86 testing.launcher=valgrind valgrind=on toolset=$TOOLSET cxxflags="--coverage -DBOOST_TRAVISCI_BUILD -std=$CXX_STANDARD" linkflags=$LDFLAGS -sBOOST_BUILD_PATH=. > python $BOOST/libs/$PROJECT_TO_TEST/filter_section_warning.py
- ../../../b2 without-valgrind address-model=64 architecture=x86 toolset=$TOOLSET cxxflags="--coverage -DBOOST_TRAVISCI_BUILD -std=$CXX_STANDARD" linkflags=$LDFLAGS -sBOOST_BUILD_PATH=. > python $BOOST/libs/$PROJECT_TO_TEST/filter_section_warning.py
- python $BOOST/libs/$PROJECT_TO_TEST/filter_section_warning.py ../../../b2 with-valgrind address-model=64 architecture=x86 testing.launcher=valgrind valgrind=on toolset=$TOOLSET cxxflags="--coverage -DBOOST_TRAVISCI_BUILD -std=$CXX_STANDARD" linkflags=$LDFLAGS -sBOOST_BUILD_PATH=.
- python $BOOST/libs/$PROJECT_TO_TEST/filter_section_warning.py ../../../b2 without-valgrind address-model=64 architecture=x86 toolset=$TOOLSET cxxflags="--coverage -DBOOST_TRAVISCI_BUILD -std=$CXX_STANDARD" linkflags=$LDFLAGS -sBOOST_BUILD_PATH=.
after_success:
# Copying Coveralls data to a separate folder
- mkdir -p $TRAVIS_BUILD_DIR/coverals
Expand Down
15 changes: 10 additions & 5 deletions filter_section_warning.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
#!/usr/bin/python
#
# filter-noisy-assembler-warnings.py
# Author: Stuart Berg

import sys
import subprocess

for line in sys.stdin:
b2 = subprocess.Popen(sys.argv[1:], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True)

while not b2.returncode:
line = b2.stdout.readline()
if not line: break;
# If line is a 'noisy' warning, don't print it or the following two lines.
if ('warning: section' in line and 'is deprecated' in line
or 'note: change section name to' in line):
next(sys.stdin)
next(sys.stdin)
else:
sys.stderr.write(line)
sys.stderr.flush()
sys.stdout.write(line)
sys.stdout.flush()

exit(b2.returncode)

0 comments on commit c2ee6da

Please sign in to comment.