Commit bc1f619b authored by Sebastian Brzezinka's avatar Sebastian Brzezinka Committed by Konrad Sztyber
Browse files

test/fuzz: create output dir only when coverage is collected



The folder is only created when needed, avoiding unnecessary
creation of empty artifacts

Resolves #3491

Change-Id: Ib7b1e4fd94ea02bead6ceaf12e6a59661194311c
Signed-off-by: default avatarSebastian Brzezinka <sebastian.brzezinka@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24591


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarKarol Latecki <karol.latecki@intel.com>
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz@tzawadzki.com>
Reviewed-by: default avatarMichal Berger <michal.berger@intel.com>
parent e0ab59f1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -12,12 +12,14 @@ fuzzers=($(get_fuzzer_targets))

llvm_out=$output_dir/llvm

mkdir -p $rootdir/../corpus/ $llvm_out/coverage
mkdir -p $rootdir/../corpus/ $llvm_out

function lcov_start() {
	local out=$llvm_out/coverage
	local src=$rootdir

	mkdir -p $out

	if hash lcov; then
		export LCOV_OPTS="
			--rc lcov_branch_coverage=1