From 4945edb4494fc005aaaf95732d6c2c05193aceb8 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Mon, 27 Feb 2017 12:37:33 -0700 Subject: [PATCH] autotest: only copy cov_total.info to build output The other coverage files are intermediate steps and are not necessary for the generation of the final coverage data. Change-Id: I2ad992fc7f9a93a5ae7a69b28b53b159d0ad10e2 Signed-off-by: Daniel Verkamp --- autotest.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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