Commit 860c3ed1 authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

autotest: use hostname as lcov test name



This will allow us to figure out which test machines actually executed
each path when the results are combined.

Change-Id: I965fed0153f5d28aa8a0ff5e0d02fed19b49003d
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent f40e98d2
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ cd $src

if hash lcov; then
	# zero out coverage data
	lcov -q -c -i -d $src -o cov_base.info
	lcov -q -c -i -t "Baseline" -d $src -o cov_base.info
fi

# set up huge pages
@@ -53,11 +53,11 @@ process_core

if hash lcov; then
	# generate coverage data and combine with baseline
	lcov -q -c -d $src -o cov_test.info
	lcov -q -c -d $src -t "$(hostname)" -o cov_test.info
	lcov -q -a cov_base.info -a cov_test.info -o cov_total.info
	lcov -q -r cov_total.info '/usr/*' -o cov_total.info
	lcov -q -r cov_total.info 'test/*' -o cov_total.info
	genhtml cov_total.info --legend -t "SPDK" -o $out/coverage
	genhtml cov_total.info --legend -t "$(hostname)" -o $out/coverage
	chmod -R a+rX $out/coverage
	rm cov_base.info cov_test.info
	mv cov_total.info $out/cov_total.info