mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-21 21:43:08 +00:00
We're not seeing *exactly* #1314991 any more, but we're seeing something that looks quite similar: the first attempt to find updates just doesn't find any. No error message, no updates. I have reported a bug for this and am investigating it, in the meantime, let's restore the workaround, elaborated a bit, and looking for the 'Software is up to date' screen instead of the error message. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
25ad8a6aeb
commit
db4ab638da
16
needles/gnome/desktop_package_tool_uptodate.json
Normal file
16
needles/gnome/desktop_package_tool_uptodate.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"ypos": 366,
|
||||
"type": "match",
|
||||
"width": 91,
|
||||
"height": 77,
|
||||
"xpos": 471
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"DESKTOP-gnome",
|
||||
"desktop_package_tool_uptodate"
|
||||
]
|
||||
}
|
BIN
needles/gnome/desktop_package_tool_uptodate.png
Normal file
BIN
needles/gnome/desktop_package_tool_uptodate.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
@ -46,7 +46,27 @@ sub run {
|
||||
# refresh updates
|
||||
assert_and_click 'desktop_package_tool_update_refresh', '', 120;
|
||||
}
|
||||
for my $n (1..5) {
|
||||
# wait for refresh, then apply updates, using a C-style loop so we
|
||||
# can reset it if needed due to RHBZ #1314991. We will retry a max
|
||||
# of two times if we hit refresh and wind up being told the system
|
||||
# is up to date.
|
||||
my $retries = 2;
|
||||
for (my $n = 1; $n < 6; $n++) {
|
||||
# TEST TEST Check if refresh completes and g-s thinks we're
|
||||
# up-to-date, if so, refresh and restart the loop
|
||||
if (check_screen 'desktop_package_tool_uptodate', 1) {
|
||||
if ($retries == 2) {
|
||||
record_soft_failure "Refresh did not find available update - #1638563. Retrying";
|
||||
}
|
||||
if ($retries > 0) {
|
||||
assert_and_click 'desktop_package_tool_update_refresh';
|
||||
$n = 1;
|
||||
}
|
||||
else {
|
||||
die "Retried refresh too many times, giving up";
|
||||
}
|
||||
$retries -= 1;
|
||||
}
|
||||
last if (check_screen 'desktop_package_tool_update_apply', 120);
|
||||
mouse_set 10, 10;
|
||||
mouse_hide;
|
||||
|
Loading…
Reference in New Issue
Block a user