diff --git a/autotest.sh b/autotest.sh index d7d80e16a6..004927be53 100755 --- a/autotest.sh +++ b/autotest.sh @@ -34,9 +34,8 @@ if hash lcov; then --rc geninfo_all_blocks=1 " export LCOV="lcov $LCOV_OPTS --no-external" - export GENHTML="genhtml $LCOV_OPTS" # zero out coverage data - $LCOV -q -c -i -t "Baseline" -d $src -o $out/cov_base.info + $LCOV -q -c -i -t "Baseline" -d $src -o cov_base.info fi # Make sure the disks are clean (no leftover partition tables) @@ -150,9 +149,8 @@ process_core if hash lcov; then # generate coverage data and combine with baseline - $LCOV -q -c -d $src -t "$(hostname)" -o $out/cov_test.info - $LCOV -q -a $out/cov_base.info -a $out/cov_test.info -o $out/cov_total.info - $GENHTML $out/cov_total.info -t "$(hostname)" -o $out/coverage - chmod -R a+rX $out/coverage + $LCOV -q -c -d $src -t "$(hostname)" -o cov_test.info + $LCOV -q -a cov_base.info -a cov_test.info -o $out/cov_total.info find . -name "*.gcda" -delete + rm -f cov_base.info cov_test.info fi