mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-04 23:24:21 +00:00
84a14cdb67
This requires adding products, flavors and needles and test cases, and tweaking some existing ones to handle the slightly different behaviour of live images in shared tests. To handle the different main hub screens in live and non-live, a less stringent needle is added which is unregistered for non-live tests, so they don't match on it before they've finished updating repository metadata. There are a few small bugfix tweaks in this too, like some delays in user creation to try and avoid intermittent failures there. A new root_logged_in needle is also included, to handle a new console font in Rawhide - that has nothing strictly to do with live testing, it just happened to come up while working on this.
27 lines
518 B
Perl
27 lines
518 B
Perl
package fedoradistribution;
|
|
use base 'distribution';
|
|
|
|
# Fedora distribution class
|
|
|
|
use testapi qw(send_key type_string);
|
|
|
|
sub init() {
|
|
my ($self) = @_;
|
|
|
|
$self->SUPER::init();
|
|
}
|
|
|
|
sub x11_start_program($$$) {
|
|
my ($self, $program, $timeout, $options) = @_;
|
|
# TODO: take screenshots of every goddamn 'run command' dialog in
|
|
# every goddamn desktop and keep them updated forever
|
|
send_key "alt-f2";
|
|
sleep 3;
|
|
type_string $program;
|
|
sleep 1;
|
|
send_key "ret", 1;
|
|
}
|
|
|
|
1;
|
|
# vim: set sw=4 et:
|