-# Get the SLES distro version
-#
-# Returns a version string that should only be used in comparing
-# strings returned by version_code()
-sles_version_code()
-{
- local version=$(grep VERSION_ID /etc/os-release | cut -d'"' -f2)
-
- # All SuSE Linux versions have one decimal. version_code expects two
- local sles_version=$version.0
- version_code $sles_version
-}
-
-# Check if we are running on Ubuntu or SLES so we can make decisions on
-# what tests to run
-if [ -r /etc/SuSE-release ] || [ -r /etc/SUSE-brand ]; then
- sles_version=$(sles_version_code)
- (( $sles_version >= $(version_code 11.4.0) )) ||
- always_except LU-4341 170
-
- (( $sles_version >= $(version_code 12.0.0) )) ||
- always_except LU-3703 234
-elif [ -r /etc/redhat-release ]; then