2015-03-18 21:28:03 +00:00
|
|
|
package fedoradistribution;
|
|
|
|
use base 'distribution';
|
|
|
|
|
2015-09-14 06:52:37 +00:00
|
|
|
use testapi;
|
|
|
|
|
2015-03-18 21:28:03 +00:00
|
|
|
# Fedora distribution class
|
|
|
|
|
2015-08-05 06:23:59 +00:00
|
|
|
# Distro-specific functions, that are actually part of the API
|
|
|
|
# (and it's completely up to us to implement them) should be here
|
|
|
|
|
|
|
|
# functions that can be reimplemented:
|
|
|
|
# ensure_installed
|
|
|
|
# x11_start_program
|
|
|
|
# become_root
|
|
|
|
# script_run
|
|
|
|
# script_sudo
|
|
|
|
# type_password
|
|
|
|
|
2015-03-18 21:28:03 +00:00
|
|
|
use testapi qw(send_key type_string);
|
|
|
|
|
|
|
|
sub init() {
|
|
|
|
my ($self) = @_;
|
|
|
|
|
|
|
|
$self->SUPER::init();
|
|
|
|
}
|
|
|
|
|
|
|
|
sub x11_start_program($$$) {
|
|
|
|
my ($self, $program, $timeout, $options) = @_;
|
|
|
|
send_key "alt-f2";
|
2015-09-17 07:49:55 +00:00
|
|
|
assert_screen "desktop_runner";
|
2015-03-18 21:28:03 +00:00
|
|
|
type_string $program;
|
2015-09-14 06:52:37 +00:00
|
|
|
wait_idle 5; # because of KDE dialog - SUSE guys are doing the same!
|
2015-03-18 21:28:03 +00:00
|
|
|
send_key "ret", 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|