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

Disks: workaround partitions sometimes being mounted after format

https://github.com/storaged-project/udisks/issues/1102 - udisks2
seems to have a bug where it leaves filesystems mounted at a
"temporary" mount point after creating them. We need to work
around this when it happens or else we'll frequently get test
failures.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2023-05-18 15:15:02 -07:00
parent efc2f8ae36
commit 89fa04661f
3 changed files with 31 additions and 0 deletions

View File

@ -193,6 +193,10 @@ sub mount_partition {
my $number = shift;
# Select the first partition if not selected.
assert_and_click("disks_select_partition_$number");
# FIXME: handle partition being mounted at /run/udisk2/temp-mount-XXXXX:
# https://github.com/storaged-project/udisks/issues/1102
# drop this when that bug is fixed
click_lastmatch if (check_screen("disks_temp_mounted", 5));
# Click on the Play symbout to mount the partition.
assert_and_click("disks_button_mount");
# Authenticate if necessary.

View File

@ -0,0 +1,27 @@
{
"area": [
{
"xpos": 616,
"ypos": 400,
"width": 83,
"height": 16,
"type": "match"
},
{
"xpos": 229,
"ypos": 345,
"width": 16,
"height": 19,
"type": "match"
}
],
"properties": [
{
"name": "workaround",
"value": "https://github.com/storaged-project/udisks/issues/1102"
}
],
"tags": [
"disks_temp_mounted"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB