From 860c3ed1ba00a5718c6d75373b289056dc2a6a55 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Mon, 2 Nov 2015 16:19:19 -0700 Subject: [PATCH] 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: Daniel Verkamp --- autotest.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autotest.sh b/autotest.sh index a78a24120..ab2ee7de1 100755 --- a/autotest.sh +++ b/autotest.sh @@ -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