Commit 4945edb4 authored by Daniel Verkamp's avatar Daniel Verkamp Committed by Jim Harris
Browse files

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: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 8f5a22d5
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -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