diff --git a/needles/anaconda/partitioning/device_root_resized_blivet_thirteen.json b/needles/anaconda/partitioning/device_root_resized_blivet_thirteen.json new file mode 100644 index 00000000..5105e022 --- /dev/null +++ b/needles/anaconda/partitioning/device_root_resized_blivet_thirteen.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "device_root_resized_thirteen" + ], + "area": [ + { + "xpos": 411, + "ypos": 321, + "width": 98, + "height": 19, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/anaconda/partitioning/device_root_resized_blivet_thirteen.png b/needles/anaconda/partitioning/device_root_resized_blivet_thirteen.png new file mode 100644 index 00000000..67664501 Binary files /dev/null and b/needles/anaconda/partitioning/device_root_resized_blivet_thirteen.png differ diff --git a/needles/anaconda/partitioning/device_root_resized_thirteen.json b/needles/anaconda/partitioning/device_root_resized_thirteen.json new file mode 100644 index 00000000..d80953ab --- /dev/null +++ b/needles/anaconda/partitioning/device_root_resized_thirteen.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "device_root_resized_thirteen" + ], + "area": [ + { + "xpos": 394, + "ypos": 147, + "width": 74, + "height": 22, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/anaconda/partitioning/device_root_resized_thirteen.png b/needles/anaconda/partitioning/device_root_resized_thirteen.png new file mode 100644 index 00000000..aaab8202 Binary files /dev/null and b/needles/anaconda/partitioning/device_root_resized_thirteen.png differ diff --git a/templates.fif.json b/templates.fif.json index 83355ddd..cbfbd203 100644 --- a/templates.fif.json +++ b/templates.fif.json @@ -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" } diff --git a/tests/disk_custom_blivet_resize_lvm.pm b/tests/disk_custom_blivet_resize_lvm.pm index 9d6cf91d..96c72a8b 100644 --- a/tests/disk_custom_blivet_resize_lvm.pm +++ b/tests/disk_custom_blivet_resize_lvm.pm @@ -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 diff --git a/tests/disk_custom_resize_lvm.pm b/tests/disk_custom_resize_lvm.pm index a58e4d8a..ebd9ec2a 100644 --- a/tests/disk_custom_resize_lvm.pm +++ b/tests/disk_custom_resize_lvm.pm @@ -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"; diff --git a/tests/disk_custom_resize_lvm_postinstall.pm b/tests/disk_custom_resize_lvm_postinstall.pm new file mode 100644 index 00000000..c1301124 --- /dev/null +++ b/tests/disk_custom_resize_lvm_postinstall.pm @@ -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: