1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-22 05:53:09 +00:00
os-autoinst-distri-fedora/tests/_boot_to_anaconda.pm

63 lines
1.6 KiB
Perl
Raw Normal View History

2015-01-26 14:58:07 +00:00
use base "basetest";
use strict;
use testapi;
sub run {
# Wait for bootloader to appear
assert_screen "bootloader", 30;
if ( get_var("FLAVOR") eq "server")
{
# Skip the media check on DVD
send_key "up";
}
2015-01-27 12:35:27 +00:00
if ( get_var("KICKSTART") )
{
if ( get_var("BOOT_KICKSTART_HTTP") )
{
send_key "tab";
type_string " inst.ks=http://jskladan.fedorapeople.org/kickstarts/root-user-crypted-net.ks";
}
2015-01-26 14:58:07 +00:00
2015-01-27 12:35:27 +00:00
send_key "ret";
}
else
{
if ( get_var("BOOT_UPDATES_IMG_URL") )
{
send_key "tab";
type_string " inst.updates=https://fedorapeople.org/groups/qa/updates/updates-unipony.img";
}
send_key "ret";
# Select install language
assert_screen "anaconda_select_install_lang", 300;
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-01-30 09:35:13 +00:00
if ( get_var("VERSION") eq "rawhide") {
assert_and_click "anaconda_rawhide_accept_fate";
}
2015-01-27 12:35:27 +00:00
# Anaconda hub
assert_screen "anaconda_main_hub", 300; #
}
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: