From 4560c2bf895530a5cd8d9a38f3fcecae74449417 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Wed, 12 Jul 2017 15:11:57 -0700 Subject: [PATCH] autotest: explicitly remove /usr from coverage The lcov --no-external option seems to still generate coverage data for e.g. /usr/include/c++/4.8.2/tuple on some test pool machines, contrary to the description of the option. Add an explicit removal of all /usr file coverage at the end of the test run to work around it. Change-Id: I8579813b1b76b4bfdef86748e88352bf232df954 Signed-off-by: Daniel Verkamp Reviewed-on: https://review.gerrithub.io/369305 Tested-by: SPDK Automated Test System Reviewed-by: Jim Harris Reviewed-by: Ben Walker --- autotest.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/autotest.sh b/autotest.sh index ea7982e98..325d4c6f6 100755 --- a/autotest.sh +++ b/autotest.sh @@ -147,6 +147,7 @@ if hash lcov; then $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 $LCOV -q -r $out/cov_total.info '*/dpdk/*' -o $out/cov_total.info + $LCOV -q -r $out/cov_total.info '/usr/*' -o $out/cov_total.info git clean -f "*.gcda" rm -f cov_base.info cov_test.info OLD_STDOUT OLD_STDERR fi