1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-12-24 03:03:08 +00:00

add package select minimal

This commit is contained in:
Garret Raziel 2015-02-03 15:02:52 +01:00 committed by Josef Skladanka
parent fa41429d3e
commit 45ec446ba5
6 changed files with 77 additions and 0 deletions

View File

@ -30,6 +30,11 @@ else
unless (get_var("KICKSTART"))
{
# Select minimal flavor
if (get_var("FLAVOR") eq "server") {
autotest::loadtest get_var('CASEDIR')."/tests/_select_minimal.pm";
}
## Disk partitioning
if (get_var('DISK_GUIDED_EMPTY')){
autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_empty.pm";

View File

@ -0,0 +1,18 @@
{
"area": [
{
"xpos": 690,
"ypos": 354,
"width": 195,
"height": 27,
"type": "match"
}
],
"tags": [
"anaconda_main_hub_select_packages",
"ENV-DISTRI-fedora",
"ENV-INSTLANG-en_US",
"ENV-OFW-1",
"ENV-FLAVOR-server"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

View File

@ -0,0 +1,18 @@
{
"tags": [
"anaconda_software_select_box",
"ENV-DISTRI-fedora",
"ENV-INSTLANG-en_US",
"ENV-OFW-1",
"ENV-FLAVOR-server"
],
"area": [
{
"xpos": 50,
"ypos": 189,
"width": 96,
"height": 18,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

36
tests/_select_minimal.pm Normal file
View File

@ -0,0 +1,36 @@
use base "basetest";
use strict;
use testapi;
sub run {
# Anaconda hub
assert_screen "anaconda_main_hub", 300; #
assert_and_click "anaconda_main_hub_select_packages";
assert_and_click "anaconda_software_select_box";
for (my $i = 0; $i < 20; $i++) {
send_key "down";
}
send_key "spc";
assert_and_click "anaconda_spoke_done";
# Anaconda hub
assert_screen "anaconda_main_hub", 50; #
}
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'
return { fatal => 1 };
}
1;
# vim: set sw=4 et: