Skip to content

Apache DataFusion SQL Query Engine

ARROW-2813: [CI] Mute uninformative lcov warnings

Antoine Pitrou098d51cd0a60
diff --git a/ci/travis_script_cpp.sh b/ci/travis_script_cpp.sh
index eedca98b5c..3a6b2f780e 100755
--- a/ci/travis_script_cpp.sh
+++ b/ci/travis_script_cpp.sh
@@ -30,6 +30,7 @@ popd
# Capture C++ coverage info (we wipe the build dir in travis_script_python.sh)
if [ "$ARROW_TRAVIS_COVERAGE" == "1" ]; then
pushd $TRAVIS_BUILD_DIR
- lcov --quiet --directory . --capture --no-external --output-file $ARROW_CPP_COVERAGE_FILE
+ lcov --quiet --directory . --capture --no-external --output-file $ARROW_CPP_COVERAGE_FILE \
+ 2>&1 | grep -v "WARNING: no data found for /usr/include"
popd
fi
diff --git a/ci/travis_script_python.sh b/ci/travis_script_python.sh
index 0743f86f33..53dd36cda9 100755
--- a/ci/travis_script_python.sh
+++ b/ci/travis_script_python.sh
@@ -155,7 +155,8 @@ if [ "$ARROW_TRAVIS_COVERAGE" == "1" ]; then
coverage xml -i -o $TRAVIS_BUILD_DIR/coverage.xml
# Capture C++ coverage info and combine with previous coverage file
pushd $TRAVIS_BUILD_DIR
- lcov --quiet --directory . --capture --no-external --output-file coverage-python-tests.info
+ lcov --quiet --directory . --capture --no-external --output-file coverage-python-tests.info \
+ 2>&1 | grep -v "WARNING: no data found for /usr/include"
lcov --add-tracefile coverage-python-tests.info \
--add-tracefile $ARROW_CPP_COVERAGE_FILE \
--output-file $ARROW_CPP_COVERAGE_FILE