2015-02-13 15:36:35 +00:00
|
|
|
use base "anacondalog";
|
2015-01-26 14:58:07 +00:00
|
|
|
use strict;
|
|
|
|
use testapi;
|
|
|
|
|
|
|
|
sub run {
|
|
|
|
# Wait for bootloader to appear
|
|
|
|
|
|
|
|
assert_screen "bootloader", 30;
|
|
|
|
|
2015-03-18 21:28:03 +00:00
|
|
|
# Make sure we skip media check if it's selected by default. Standard
|
|
|
|
# 'boot installer' menu entry is always first.
|
|
|
|
send_key "up";
|
|
|
|
send_key "up";
|
2015-01-26 14:58:07 +00:00
|
|
|
|
2015-02-04 13:05:20 +00:00
|
|
|
if( get_var("GRUB")){
|
|
|
|
send_key "tab";
|
|
|
|
type_string " ".get_var("GRUB");
|
2015-02-04 13:45:37 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (get_var("REPOSITORY_VARIATION")){
|
|
|
|
unless (get_var("GRUB")){
|
|
|
|
send_key "tab";
|
|
|
|
}
|
|
|
|
my $fedora_version = "";
|
|
|
|
my $repourl = "";
|
|
|
|
|
2015-02-19 15:55:29 +00:00
|
|
|
$fedora_version = lc((split /_/, get_var("BUILD"))[0]);
|
2015-02-04 13:45:37 +00:00
|
|
|
|
2015-03-04 11:26:02 +00:00
|
|
|
$repourl = get_var("REPOSITORY_VARIATION")."/".$fedora_version."/".get_var("ARCH")."/os";
|
2015-02-04 13:45:37 +00:00
|
|
|
type_string " inst.repo=".$repourl;
|
2015-01-27 12:35:27 +00:00
|
|
|
}
|
|
|
|
|
2015-02-04 13:05:20 +00:00
|
|
|
send_key "ret";
|
|
|
|
|
|
|
|
unless (get_var("KICKSTART"))
|
|
|
|
{
|
2015-03-18 21:28:03 +00:00
|
|
|
# on lives, we have to explicitly launch anaconda
|
|
|
|
if (get_var('LIVE')) {
|
|
|
|
assert_and_click "live_initial_anaconda_launcher", '', 300;
|
|
|
|
} else {
|
|
|
|
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-01-27 12:35:27 +00:00
|
|
|
type_string "english";
|
|
|
|
assert_and_click "anaconda_select_install_lang_english_filtered";
|
|
|
|
assert_screen "anaconda_select_install_lang_english_selected", 3;
|
|
|
|
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-01-27 12:35:27 +00:00
|
|
|
# Anaconda hub
|
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:
|