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

Add a check that correct filesystem was used on Server installs

This is currently broken, but openQA doesn't notice; we really
should. We could also check the default in other cases, but I
think that's less clear-cut, as it's kind of an anaconda design
choice, it's not mandated in Fedora requirements anywhere.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2018-01-05 13:38:09 -08:00
parent f70416c6a1
commit ffa7ca2447
2 changed files with 51 additions and 0 deletions

View File

@ -1524,6 +1524,17 @@
}, },
test_suite => { name => "install_kickstart_nfs" }, test_suite => { name => "install_kickstart_nfs" },
}, },
{
machine => { name => "64bit" },
prio => 20,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "Server-dvd-iso",
version => "*",
},
test_suite => { name => "server_filesystem_default" },
},
{ {
machine => { name => "64bit" }, machine => { name => "64bit" },
prio => 20, prio => 20,
@ -2531,6 +2542,18 @@
}, },
test_suite => { name => "install_kickstart_nfs" }, test_suite => { name => "install_kickstart_nfs" },
}, },
{
group_name => "Fedora PowerPC",
machine => { name => "ppc64le" },
prio => 20,
product => {
arch => "ppc64le",
distri => "fedora",
flavor => "Server-dvd-iso",
version => "*",
},
test_suite => { name => "server_filesystem_default" },
},
{ {
group_name => "Fedora PowerPC", group_name => "Fedora PowerPC",
machine => { name => "ppc64le" }, machine => { name => "ppc64le" },
@ -4251,6 +4274,17 @@
{ key => "USER_LOGIN", value => "false" }, { key => "USER_LOGIN", value => "false" },
], ],
}, },
{
name => "server_filesystem_default",
settings => [
{ key => "POSTINSTALL", value => "server_filesystem_default" },
{ key => "USER_LOGIN", value => "false" },
{ key => "ROOT_PASSWORD", value => "weakpassword" },
{ key => "START_AFTER_TEST", value => "install_default_upload" },
{ key => "BOOTFROM", value => "c" },
{ key => "HDD_1", value => "disk_%FLAVOR%_%MACHINE%.qcow2" },
],
},
{ {
name => "server_firewall_default", name => "server_firewall_default",
settings => [ settings => [

View File

@ -0,0 +1,17 @@
use base "installedtest";
use strict;
use testapi;
sub run {
my $self = shift;
# check / is xfs, as it should be on server
assert_script_run 'findmnt -M / -o FSTYPE | grep xfs';
}
sub test_flags {
return { fatal => 1 };
}
1;
# vim: set sw=4 et: