mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-09 06:51:23 +00:00
591b153238
Summary: per details in T759, the 'unipony' updates image we use to test the updates image features doesn't work with latest anaconda (f24 and Rawhide). I've built a new updates image which uses a neat anaconda feature that allows you to override CSS with a file in a special location; it sets the background for disk capacity texts on the INSTALLATION DESTINATION spoke to be pink. This lets us use a simple needle that just looks for a pink blob on that spoke, on the basis that it's unlikely there'll ever be a pink blob there for any other reason, so if there is one, the updates image worked. There will be an accompanying tools diff to change the updates disk image to use the new updates image. Test Plan: Do a test run and check the updates image tests pass and no other tests are broken. You'll need to pull in the tools diff and re-generate the updates disk image to check that test, the scsi_updates_img test should work with just this diff. Reviewers: jskladan, garretraziel Reviewed By: garretraziel Subscribers: tflink Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D799
35 lines
885 B
Perl
35 lines
885 B
Perl
use base "anacondatest";
|
|
use strict;
|
|
use testapi;
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
# Anaconda hub
|
|
# Go to INSTALLATION DESTINATION and ensure one disk is selected.
|
|
$self->select_disks();
|
|
|
|
# updates.img tests work by changing the appearance of the INSTALLATION
|
|
# DESTINATION screen, so check that if needed.
|
|
if (get_var('BOOT_UPDATES_IMG_URL')){
|
|
assert_screen "anaconda_install_destination_updates", 30;
|
|
}
|
|
|
|
assert_and_click "anaconda_spoke_done";
|
|
|
|
# Anaconda hub
|
|
assert_screen "anaconda_main_hub", 300; #
|
|
|
|
}
|
|
|
|
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:
|