mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-08-25 00:25:50 +00:00
blivet_btrfs_preserve_home: tweak root deletion
Trying to fix the frequent failures of this test, still. I don't think we need the loop if we make sure to select the *parent* entry in the list, which the needle tweaks should ensure, but we might need to click twice to ensure it's selected and not delete the entire btrfs volume by mistake, which is what we keep doing. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
b40f3ff3ee
commit
41df5e63e5
@ -1,15 +0,0 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 286,
|
||||
"width": 36,
|
||||
"height": 18,
|
||||
"ypos": 377,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"anaconda_blivet_part_root_exists"
|
||||
]
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 76 KiB |
@ -1,15 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 265,
|
||||
"width": 36,
|
||||
"height": 18,
|
||||
"ypos": 353,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"anaconda_blivet_part_root_exists"
|
||||
]
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"height": 18,
|
||||
"type": "match",
|
||||
"width": 51,
|
||||
"xpos": 245,
|
||||
"ypos": 353
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"anaconda_blivet_part_root_exists"
|
||||
]
|
||||
}
|
@ -76,15 +76,12 @@ sub run {
|
||||
# taking any effect.
|
||||
sleep 5;
|
||||
|
||||
# While there are some root subvolumes (it seems that there can be more than one)
|
||||
# continue to delete them.
|
||||
while (check_screen "anaconda_blivet_part_root_exists", 2) {
|
||||
assert_and_click "anaconda_blivet_part_root_exists";
|
||||
wait_still_screen 2;
|
||||
assert_and_click "anaconda_blivet_part_delete";
|
||||
assert_and_click "anaconda_blivet_btn_ok";
|
||||
sleep 5;
|
||||
}
|
||||
# delete root subvolume. first click may not work
|
||||
assert_and_click "anaconda_blivet_part_root_exists";
|
||||
wait_still_screen 2;
|
||||
click_lastmatch if (check_screen "anaconda_blivet_part_root_exists");
|
||||
assert_and_click "anaconda_blivet_part_delete";
|
||||
assert_and_click "anaconda_blivet_btn_ok";
|
||||
|
||||
# Add new root partition
|
||||
assert_and_click "anaconda_add";
|
||||
|
Loading…
Reference in New Issue
Block a user