Commit bf1628c1 authored by Michal Berger's avatar Michal Berger Committed by Tomasz Zawadzki
Browse files

autotest: Stop running extra git clean against .gcda files



These files are part of .gitignore hence this command is foobar.

Change-Id: Ied1bc156cf9b2c428e5f3fdb3b31cf4715c7d07f
Signed-off-by: default avatarMichal Berger <michal.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18120


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 7e291332
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -380,7 +380,5 @@ if hash lcov && ! [[ "$CC_TYPE" == *"clang"* ]]; then
	$LCOV -q -r $out/cov_total.info '*/examples/vmd/*' -o $out/cov_total.info
	$LCOV -q -r $out/cov_total.info '*/app/spdk_lspci/*' -o $out/cov_total.info
	$LCOV -q -r $out/cov_total.info '*/app/spdk_top/*' -o $out/cov_total.info
	owner=$(stat -c "%U" .)
	sudo -u $owner git clean -f "*.gcda"
	rm -f cov_base.info cov_test.info OLD_STDOUT OLD_STDERR
fi
+0 −2
Original line number Diff line number Diff line
@@ -47,8 +47,6 @@ function lcov_stop() {
		$LCOV -q -a $out/cov_base.info -a $out/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
		owner=$(stat -c "%U" .)
		sudo -u $owner git clean -f "*.gcda"
		rm -f cov_base.info cov_test.info OLD_STDOUT OLD_STDERR
	fi
}
+0 −4
Original line number Diff line number Diff line
@@ -295,10 +295,6 @@ if [ "$cov_avail" = "yes" ] && ! [[ "$CC_TYPE" == *"clang"* ]]; then
	$LCOV -q -r $UT_COVERAGE/ut_cov_unit.info "$rootdir/test/*" -o $UT_COVERAGE/ut_cov_unit.info
	rm -f $UT_COVERAGE/ut_cov_base.info $UT_COVERAGE/ut_cov_test.info
	genhtml $UT_COVERAGE/ut_cov_unit.info --output-directory $UT_COVERAGE
	# git -C option not used for compatibility reasons
	owner=$(stat -c "%U" $rootdir)
	cd $rootdir
	sudo -u $owner git clean -f "*.gcda"
fi

set +x