diff --git a/src/test/tpkg/run-all-lcov.sh b/src/test/tpkg/run-all-lcov.sh index 5e5bfffe..37fdb5bd 100755 --- a/src/test/tpkg/run-all-lcov.sh +++ b/src/test/tpkg/run-all-lcov.sh @@ -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