alternate tests for Rocky Linux 9

This commit is contained in:
Trevor Cooper 2022-06-30 21:31:48 -07:00
parent baba72c1b5
commit 33e96cdeea
Signed by: tcooper
GPG Key ID: 52364D7BBCEB35B8

View File

@ -43,6 +43,9 @@ sub run {
my $ver_major = substr($version_id, 0, index($version_id, q/./)); my $ver_major = substr($version_id, 0, index($version_id, q/./));
my $ver_minor = substr($version_id, index($version_id, q/./), length($version_id)); my $ver_minor = substr($version_id, index($version_id, q/./), length($version_id));
my $target = lc($ver_major); my $target = lc($ver_major);
if ( $ver_major = '9' ) {
$target = lc($version_id);
}
my $reltag = script_output 'rpm -q rocky-release --qf "%{RELEASE}\n"'; my $reltag = script_output 'rpm -q rocky-release --qf "%{RELEASE}\n"';
my $relver = substr($reltag, 0, rindex($reltag, q/./)); my $relver = substr($reltag, 0, rindex($reltag, q/./));
@ -79,6 +82,10 @@ sub run {
# Test for Rocky Support Product # Test for Rocky Support Product
$strip = strip_marks($content{'ROCKY_SUPPORT_PRODUCT'}); $strip = strip_marks($content{'ROCKY_SUPPORT_PRODUCT'});
if ( $ver_major = '9' ) {
$fullname = qq/$fullname $ver_major/;
$fullname =~ s/ /-/g;
}
rec_log "ROCKY_SUPPORT_PRODUCT should be $fullname and is $strip", $strip eq $fullname, $failref; rec_log "ROCKY_SUPPORT_PRODUCT should be $fullname and is $strip", $strip eq $fullname, $failref;
# Test for Rocky Support Product Version # Test for Rocky Support Product Version