mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-09 23:11:24 +00:00
2f1216c3b0
Summary: For Rawhide, the text in os-release-fedora is 'rawhide' not 'Rawhide', so lc the $VERSION value when checking. For other releases it's digits, so the lc won't change anything - lc('23') is '23'. Test Plan: Run the Rawhide upgrade tests, they should succeed. Reviewers: jskladan, garretraziel Reviewed By: garretraziel Subscribers: tflink Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D620
27 lines
599 B
Perl
27 lines
599 B
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
|
|
# try to login, check whether target release is installed
|
|
$self->boot_to_login_screen();
|
|
$self->root_console(tty=>3);
|
|
$self->check_release(lc(get_var('VERSION')));
|
|
}
|
|
|
|
|
|
sub test_flags {
|
|
# without anything - rollback to 'lastgood' snapshot if failed
|
|
# 'fatal' - whole test suite is in danger if this fails
|
|
# 'milestone' - after this test succeeds, update 'lastgood'
|
|
# 'important' - if this fails, set the overall state to 'fail'
|
|
return { fatal => 1 };
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|