diff --git a/tests/0_lib/functions.sh b/tests/0_lib/functions.sh index 87137a7..24847bd 100755 --- a/tests/0_lib/functions.sh +++ b/tests/0_lib/functions.sh @@ -97,7 +97,7 @@ function t_GetPkgRel # Description: return the distro release (returns 5 or 6 now) function t_DistCheck { - rpm -q $(rpm -qf /etc/redhat-release) --queryformat '%{version}\n'|cut -f 1 -d '.' + rpm -q --queryformat '%{version}\n' centos-release } # Additionally set distro release to $centos_ver centos_ver=$(t_DistCheck)