Commit 9db3245e authored by Karol Latecki's avatar Karol Latecki Committed by Tomasz Zawadzki
Browse files

test/nvme: recreate spdk/nvmecli git index file



spdk/nvmecli git index happens to be corrupted and
results in a lot of unrelated failures in the CI.
This patch attempts only to mitigate the issue of
unwanted failures by restoring nvmecli repository
to clean state.

Fixes #1496

Signed-off-by: default avatarKarol Latecki <karol.latecki@intel.com>
Change-Id: Ic17bffb0bc5bd3222c9f395fb217d2ffae99ceb3
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3415


Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: default avatarSeth Howell <seth.howell@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent 0b09b651
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -848,7 +848,12 @@ function nvme_cli_build() {
	# Build against the version of SPDK under test
	pushd $spdk_nvme_cli

	# Remove and recreate git index in case it became corrupted
	if ! git clean -dfx; then
		rm -f .git/index
		git clean -dfx
		git reset --hard
	fi

	rm -f "$spdk_nvme_cli/spdk"
	ln -sf "$rootdir" "$spdk_nvme_cli/spdk"