2015-08-05 06:23:59 +00:00
|
|
|
use base "anacondatest";
|
2015-01-26 14:58:07 +00:00
|
|
|
use strict;
|
|
|
|
use testapi;
|
|
|
|
|
|
|
|
sub run {
|
2016-05-04 18:53:11 +00:00
|
|
|
my $self = shift;
|
|
|
|
# construct the kernel args. the trick here is to wind up with
|
|
|
|
# spaced args if GRUB or GRUBADD is set, and just spaces if not,
|
|
|
|
# then check if we got all spaces. We wind up with a harmless
|
|
|
|
# extra space if GRUBADD is set but GRUB is not.
|
|
|
|
my $args = "";
|
|
|
|
$args .= get_var("GRUB", "") . " ";
|
|
|
|
$args .= get_var("GRUBADD", "") . " ";
|
|
|
|
# Construct inst.repo arg for REPOSITORY_VARIATION
|
|
|
|
my $repourl = get_var("REPOSITORY_VARIATION");
|
|
|
|
if ($repourl) {
|
|
|
|
my $version = lc(get_var("VERSION", ""));
|
|
|
|
my $arch = get_var("ARCH", "");
|
|
|
|
$repourl .= "/$version/Everything/$arch/os";
|
|
|
|
$args .= "inst.repo=$repourl";
|
2015-02-04 13:45:37 +00:00
|
|
|
}
|
2016-05-04 18:53:11 +00:00
|
|
|
# ternary: set $args to "" if it contains only spaces
|
|
|
|
$args = $args =~ /^\s+$/ ? "" : $args;
|
2015-02-04 13:45:37 +00:00
|
|
|
|
2016-05-04 18:53:11 +00:00
|
|
|
# set mutex wait if necessary
|
|
|
|
my $mutex = get_var("INSTALL_UNLOCK");
|
2015-01-27 12:35:27 +00:00
|
|
|
|
2016-05-04 18:53:11 +00:00
|
|
|
# call do_bootloader with postinstall=0, the args, and the mutex
|
|
|
|
$self->do_bootloader(0, $args, $mutex);
|
2015-02-04 13:05:20 +00:00
|
|
|
|
2016-05-04 18:53:11 +00:00
|
|
|
# proceed to installer
|
2015-02-04 13:05:20 +00:00
|
|
|
unless (get_var("KICKSTART"))
|
|
|
|
{
|
2015-03-18 21:28:03 +00:00
|
|
|
# on lives, we have to explicitly launch anaconda
|
|
|
|
if (get_var('LIVE')) {
|
2015-09-14 06:52:37 +00:00
|
|
|
assert_and_click "live_start_anaconda_icon", '', 300;
|
2015-03-18 21:28:03 +00:00
|
|
|
}
|
2015-09-15 01:08:58 +00:00
|
|
|
my $language = get_var('LANGUAGE') || 'english';
|
2015-07-29 06:16:05 +00:00
|
|
|
# wait for anaconda to appear
|
|
|
|
assert_screen "anaconda_select_install_lang", 300;
|
2015-01-27 12:35:27 +00:00
|
|
|
# Select install language
|
2015-02-20 09:30:23 +00:00
|
|
|
assert_and_click "anaconda_select_install_lang_input";
|
2015-09-15 01:08:58 +00:00
|
|
|
type_string "${language}";
|
|
|
|
# Needle filtering in main.pm ensures we will only look for the
|
|
|
|
# appropriate language, here
|
|
|
|
assert_and_click "anaconda_select_install_lang_filtered";
|
|
|
|
assert_screen "anaconda_select_install_lang_selected", 3;
|
2015-01-27 12:35:27 +00:00
|
|
|
assert_and_click "anaconda_select_install_lang_continue";
|
|
|
|
|
2015-02-19 14:40:33 +00:00
|
|
|
if ( check_screen "anaconda_rawhide_accept_fate" ) {
|
2015-02-04 12:02:54 +00:00
|
|
|
assert_and_click "anaconda_rawhide_accept_fate";
|
|
|
|
}
|
2015-01-30 09:35:13 +00:00
|
|
|
|
2015-08-05 06:23:59 +00:00
|
|
|
# wait for Anaconda hub to appear
|
2015-02-25 17:20:41 +00:00
|
|
|
assert_screen "anaconda_main_hub", 900; #
|
2015-01-27 12:35:27 +00:00
|
|
|
}
|
2015-01-26 14:58:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
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'
|
2015-01-28 12:42:34 +00:00
|
|
|
return { fatal => 1 };
|
2015-01-26 14:58:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|