mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-01-18 06:33:09 +00:00
10c5ff7038
This adds two initial custom layout install tests for webUI, and wires up some library functions for other tests to use. They may need refining over time but this should be good enough for a start. Signed-off-by: Adam Williamson <awilliam@redhat.com>
25 lines
682 B
Perl
25 lines
682 B
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
$self->root_console(tty => 3, timeout => 30);
|
|
assert_screen "root_console";
|
|
# check number of partitions
|
|
script_run 'fdisk -l | grep /dev/vda'; # debug
|
|
validate_script_output 'fdisk -l | grep /dev/vda | wc -l', sub { $_ =~ m/4/ };
|
|
# check mounted partitions are ext4 fs
|
|
script_run 'mount | grep /dev/vda'; # debug
|
|
validate_script_output "mount | grep /dev/vda2", sub { $_ =~ m/on \/boot type ext4/ };
|
|
validate_script_output "mount | grep /dev/vda3", sub { $_ =~ m/on \/ type ext4/ };
|
|
}
|
|
|
|
sub test_flags {
|
|
return {fatal => 1};
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|