mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-24 23:03:08 +00:00
Handle Rawhide updates in upgrade postinstall version check
When testing Rawhide updates we set VERSION to the Rawhide release number, not "Rawhide". This post-upgrade version check needs adjusting to handle that. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
0ed87c1b66
commit
c41c55cefe
@ -7,7 +7,12 @@ sub run {
|
||||
my $self = shift;
|
||||
# try to login, check whether target release is installed
|
||||
$self->root_console(tty=>3);
|
||||
check_release(lc(get_var('VERSION')));
|
||||
my $version = lc(get_var('VERSION'));
|
||||
my $rawrel = get_var('RAWREL');
|
||||
# if VERSION is the Rawhide release number (happens for Rawhide
|
||||
# update tests), check for "rawhide" not the number
|
||||
my $tocheck = $version eq $rawrel ? 'rawhide' : $version;
|
||||
check_release($tocheck);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user