Commit 41d32e9c authored by Tomasz Zawadzki's avatar Tomasz Zawadzki
Browse files

test/abi: match any LTS release for SO major bump check



After every LTS major SO is increased to allow minor SO
changes for period when particular LTS is supported.
Meanwhile ABI test verifies if version was increased
without modifying the actual implementation.
Resulting in skipping the check for release following
the LTS.

This was hardcoded to specific LTS release, so this
patch allows to match any SPDK release with LTS tag.

Signed-off-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Change-Id: Ie85ab864114479f4e0b9b107796140249d1719fb
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18443


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
parent ed7054e3
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ function get_spdk_abi() {
}

function get_release_branch() {
	tag=$(git describe --tags --abbrev=0 --exclude=LTS --exclude=*-pre)
	tag=$(git describe --tags --abbrev=0 --exclude=LTS --exclude=*-pre $1)
	branch="${tag:0:6}.x"
	echo "$branch"
}
@@ -185,8 +185,8 @@ EOF
			fi

			if [[ $so_name_changed == yes ]]; then
				# After 23.01 LTS all SO major versions were intentionally increased. This check can be removed after SPDK 23.05 release.
				if [[ "$release" == "v23.01.x" ]]; then
				# All SO major versions are intentionally increased after LTS to allow SO minor changes during the supported period.
				if [[ "$release" == "$(get_release_branch LTS)" ]]; then
					found_abi_change=true
				fi
				if ! $found_abi_change; then