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 <daniel.verkamp@intel.com>
This commit is contained in:
parent
8f5a22d56e
commit
4945edb449
10
autotest.sh
10
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
|
||||
|
Loading…
Reference in New Issue
Block a user