mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-29 00:16:30 +00:00
alternate tests for Rocky Linux 9
This commit is contained in:
parent
baba72c1b5
commit
33e96cdeea
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user