mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-25 14:41:27 +00:00
Fix upgrade workaround stuff for upgrade_2
Initial implementation wasn't correct, I forgot CURRREL is not 'the pre-upgrade release version' but just 'the current stable release'. This is a dumb way to figure out the correct release number for this context but off-hand I can't think of a better one. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
ff1d75050e
commit
55a2229e4c
@ -7,6 +7,12 @@ sub run {
|
|||||||
my $self = shift;
|
my $self = shift;
|
||||||
# upgrader should be installed on up-to-date system
|
# upgrader should be installed on up-to-date system
|
||||||
my $version = get_var("CURRREL");
|
my $version = get_var("CURRREL");
|
||||||
|
# ok this is dumb but I need to fix it fast and can't think of a
|
||||||
|
# better way in a hurry. We want the pre-upgrade release version.
|
||||||
|
my $testname = get_var("TEST");
|
||||||
|
if (index($testname, "upgrade_2") != -1) {
|
||||||
|
$version = get_var("PREVREL");
|
||||||
|
}
|
||||||
setup_workaround_repo $version;
|
setup_workaround_repo $version;
|
||||||
assert_script_run 'dnf -y update --refresh', 1800;
|
assert_script_run 'dnf -y update --refresh', 1800;
|
||||||
script_run "reboot", 0;
|
script_run "reboot", 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user