mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-22 05:53: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:
parent
efc2f8ae36
commit
89fa04661f
@ -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.
|
||||
|
27
needles/gnome/apps/disks/disks_temp_mounted-20230518.json
Normal file
27
needles/gnome/apps/disks/disks_temp_mounted-20230518.json
Normal 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"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/disks/disks_temp_mounted-20230518.png
Normal file
BIN
needles/gnome/apps/disks/disks_temp_mounted-20230518.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 114 KiB |
Loading…
Reference in New Issue
Block a user