mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-03-04 03:24:31 +00:00
Tweak desktop_update_graphical download/apply handling for fwupd
Now fwupd is showing us dbx updates, it seems we get *both* a "Restart & Update..." button *and* a "Download" button at the same time. If we click Restart & Update without clicking Download first, package updates aren't applied. So, tweak this logic yet again so that it 'breaks the tie' in the way we want (if both buttons are present, click the download one, take download out of the tags, and go to the next loop iteration). Hopefully this solves the problem without breaking any other paths. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
f473de351c
commit
aaf6018485
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"width": 71,
|
||||||
|
"ypos": 249,
|
||||||
|
"type": "match",
|
||||||
|
"xpos": 688,
|
||||||
|
"height": 36
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"DESKTOP-gnome",
|
||||||
|
"desktop_package_tool_update_download"
|
||||||
|
]
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 69 KiB |
23
needles/gnome/gnome_reboot_confirm-variant-20250128.json
Normal file
23
needles/gnome/gnome_reboot_confirm-variant-20250128.json
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"height": 18,
|
||||||
|
"xpos": 578,
|
||||||
|
"type": "match",
|
||||||
|
"width": 53,
|
||||||
|
"ypos": 446
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"xpos": 395,
|
||||||
|
"ypos": 309,
|
||||||
|
"width": 144,
|
||||||
|
"height": 20,
|
||||||
|
"type": "match"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"DESKTOP-gnome",
|
||||||
|
"gnome_reboot_confirm"
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/gnome/gnome_reboot_confirm-variant-20250128.png
Normal file
BIN
needles/gnome/gnome_reboot_confirm-variant-20250128.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 876 KiB |
@ -88,10 +88,10 @@ sub run {
|
|||||||
# or 'download' then 'apply'
|
# or 'download' then 'apply'
|
||||||
for (my $n = 1; $n < 6; $n++) {
|
for (my $n = 1; $n < 6; $n++) {
|
||||||
if (check_screen $tags, 120) {
|
if (check_screen $tags, 120) {
|
||||||
# if we see 'apply', we're done here, quit out of the loop
|
# if we have a download button, we want to hit it, even if
|
||||||
last if (match_has_tag 'desktop_package_tool_update_apply');
|
# we also have a restart button. then continue waiting for
|
||||||
# if we see 'download', let's hit it, and continue waiting
|
# apply (only)
|
||||||
# for apply (only)
|
if (check_screen 'desktop_package_tool_update_download') {
|
||||||
wait_screen_change { click_lastmatch; };
|
wait_screen_change { click_lastmatch; };
|
||||||
$n -= 1 if ($n > 1);
|
$n -= 1 if ($n > 1);
|
||||||
if (get_var("TAG") || get_var("COPR")) {
|
if (get_var("TAG") || get_var("COPR")) {
|
||||||
@ -102,6 +102,9 @@ sub run {
|
|||||||
$tags = ['desktop_package_tool_update_apply'];
|
$tags = ['desktop_package_tool_update_apply'];
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
# if we *only* saw apply, we're done, break out
|
||||||
|
last;
|
||||||
|
}
|
||||||
# move the mouse to stop the screen blanking on idle
|
# move the mouse to stop the screen blanking on idle
|
||||||
mouse_set 10, 10;
|
mouse_set 10, 10;
|
||||||
mouse_hide;
|
mouse_hide;
|
||||||
|
Loading…
Reference in New Issue
Block a user