Only merge non empty lcov info files

This commit is contained in:
Willem Toorop 2016-05-19 21:15:24 +02:00
parent 028ceb7ebf
commit 7f30aba6bd
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ do
# after the test is complete, we need to collect the coverage data
INFO_FILE=`echo $TEST_PKG | sed 's/.tpkg$//'`.info
geninfo $SRCDIR/.. -o $INFO_FILE
LCOV_MERGE="$LCOV_MERGE -a $INFO_FILE"
[ -s $INFO_FILE ] && LCOV_MERGE="$LCOV_MERGE -a $INFO_FILE"
done
lcov $LCOV_MERGE -o run-all.info
genhtml run-all.info --output-directory coverage-html