diff --git a/test/common/config/pkgdep/git b/test/common/config/pkgdep/git index 0a6963bf4..cfb353072 100644 --- a/test/common/config/pkgdep/git +++ b/test/common/config/pkgdep/git @@ -21,7 +21,7 @@ function install_refspdk() { version=$1 # Create a reference SPDK build for ABI tests - git -C "$GIT_REPOS/spdk_repo/spdk" fetch --tags + git -C "$GIT_REPOS/spdk_repo/spdk" fetch --tags --force if [[ "$version" == "latest" ]]; then release=$(git -C "$GIT_REPOS/spdk_repo/spdk" tag | sort --version-sort | grep -v rc | tail -n 1) @@ -31,6 +31,8 @@ function install_refspdk() { output_dir="$GIT_REPOS/spdk_abi_lts" fi + rm -rf "$output_dir" + if [[ ! -d $output_dir ]]; then cp -R "$GIT_REPOS/spdk_repo/spdk" "$output_dir" fi