Introduce a resize check and a postinstall test for custom and blivet
tests. This PR fixes #228.
This commit is contained in:
parent
bc611d6975
commit
6d1d549941
@ -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 |
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"device_root_resized_thirteen"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 394,
|
||||
"ypos": 147,
|
||||
"width": 74,
|
||||
"height": 22,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/anaconda/partitioning/device_root_resized_thirteen.png
Normal file
BIN
needles/anaconda/partitioning/device_root_resized_thirteen.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 104 KiB |
@ -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"
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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";
|
||||
|
18
tests/disk_custom_resize_lvm_postinstall.pm
Normal file
18
tests/disk_custom_resize_lvm_postinstall.pm
Normal 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:
|
Loading…
Reference in New Issue
Block a user