diff --git a/tools/run_tests/run_lcov.sh b/tools/run_tests/run_lcov.sh index a28ec138bb606a2365cfa1e67505b1a4847b4890..ec97ebf0a5b8ca5c24352b6e79a16ad0edb491a3 100755 --- a/tools/run_tests/run_lcov.sh +++ b/tools/run_tests/run_lcov.sh @@ -33,9 +33,10 @@ set -ex out=$(readlink -f ${1:-coverage}) root=$(readlink -f $(dirname $0)/../..) +shift tmp=$(mktemp) cd $root -tools/run_tests/run_tests.py -c gcov -l c c++ || true +tools/run_tests/run_tests.py -c gcov -l c c++ $@ || true lcov --capture --directory . --output-file $tmp genhtml $tmp --output-directory $out rm $tmp