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

Introduce a resize check and a postinstall test for custom and blivet

tests.

This PR fixes #228.
This commit is contained in:
Lukáš Růžička 2021-06-22 12:38:26 +02:00
parent bc611d6975
commit 6d1d549941
8 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"device_root_resized_thirteen"
],
"area": [
{
"xpos": 411,
"ypos": 321,
"width": 98,
"height": 19,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"device_root_resized_thirteen"
],
"area": [
{
"xpos": 394,
"ypos": 147,
"width": 74,
"height": 22,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

View File

@ -802,6 +802,7 @@
"PARTITIONING": "custom_blivet_resize_lvm",
"HDD_1": "disk_%FLAVOR%_%MACHINE%.qcow2",
"INSTALL": "1",
"POSTINSTALL": "custom_resize_lvm_postinstall",
"ROOT_PASSWORD": "weakpassword",
"START_AFTER_TEST": "install_lvm_ext4"
}

View File

@ -60,6 +60,8 @@ sub run {
activate("root");
custom_blivet_resize_partition(size => '13', units => 'GiB');
wait_still_screen 5;
# Check that the partition has been correctly resized to 13G.
assert_screen "device_root_resized_thirteen";
# Now format the resized root partition. It seems that the focus returns to the first
# partition in the view, so we need to activate this again before we attempt to do

View File

@ -62,6 +62,8 @@ sub run {
assert_and_click "anaconda_part_update_settings";
# give it a second or two to update
wait_still_screen 2;
# Check that the partition has been resized for 13GiB
assert_screen "device_root_resized_thirteen";
# Add new /home partition into the emptied space.
assert_and_click "anaconda_part_add";

View File

@ -0,0 +1,18 @@
use base "installedtest";
use strict;
use testapi;
sub run {
assert_screen "root_console";
# check that there is a root partition and that it has
# the correct size -> 13G
assert_script_run "lsblk | grep root | grep '13G'";
}
sub test_flags {
return { fatal => 1 };
}
1;
# vim: set sw=4 et: