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

Add postinstall tests.

This commit is contained in:
Lukáš Růžička 2021-05-10 12:10:37 +02:00
parent 97c5fb3ab5
commit 02f9fe9a65
2 changed files with 33 additions and 0 deletions

View File

@ -738,6 +738,7 @@
"PARTITIONING": "custom_blivet_resize_lvm",
"HDD_1": "disk_%FLAVOR%_%MACHINE%.qcow2",
"INSTALL": "1",
"POSTINSTALL": "disk_custom_resize_lvm_ext4_postinstall",
"ROOT_PASSWORD": "weakpassword",
"START_AFTER_TEST": "install_lvm_ext4"
}
@ -752,6 +753,7 @@
"PARTITIONING": "custom_resize_lvm",
"HDD_1": "disk_%FLAVOR%_%MACHINE%.qcow2",
"INSTALL": "1",
"POSTINSTALL": "disk_custom_resize_lvm_ext4_postinstall",
"ROOT_PASSWORD": "weakpassword",
"START_AFTER_TEST": "install_lvm_ext4"
}

View File

@ -0,0 +1,31 @@
use base "installedtest";
use strict;
use testapi;
sub run {
assert_screen "root_console";
my $devboot = 'vda1';
if (get_var('OFW') || get_var('UEFI')) {
$devboot = 'vda2';
}
# check that lvm is present:
validate_script_output "lvdisplay | grep 'LV Status'", sub { $_ =~ m/available/ };
# Check that the root partition has been resized to 13 GiB.
validate_script_output "fdisk -l", sub { $_ =~ m/13 GiB/ };
# Check that the home partition has been created.
# We do not check for size this time, because the /home partition is created
# in the remaining space and this might vary in the future.
assert_script_run "fdisk -l | grep /home";
}
sub test_flags {
return { fatal => 1 };
}
1;
# vim: set sw=4 et: