mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-11 17:34:23 +00:00
Added checks and asserts.
This commit is contained in:
parent
23c55dc8bc
commit
350ab09ee5
@ -38,24 +38,19 @@ sub run {
|
|||||||
mouse_hide;
|
mouse_hide;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
assert_and_click 'desktop_package_tool_update';
|
# a banner informs about new version, download it
|
||||||
# if this is KDE and it had already noticed the notification, we
|
assert_and_click 'desktop_package_tool_download';
|
||||||
# will already have the apply button at this point
|
|
||||||
unless (check_screen 'desktop_package_tool_update_apply', 5) {
|
|
||||||
# refresh updates
|
|
||||||
assert_and_click 'desktop_package_tool_update_refresh', '', 240;
|
|
||||||
}
|
|
||||||
# wait for refresh, then apply updates, using a C-style loop so we
|
# wait for refresh, then apply updates, using a C-style loop so we
|
||||||
# can reset it if needed due to RHBZ #1314991
|
# can reset it if needed due to RHBZ #1314991
|
||||||
for (my $n = 1; $n < 6; $n++) {
|
for (my $n = 1; $n < 6; $n++) {
|
||||||
# Check if we see the 'cancelled by user action' error we get
|
# Check if we see the 'cancelled by user action' error we get
|
||||||
# when #1314991 happens, if so, refresh and restart the loop
|
# when #1314991 happens, if so, refresh and restart the loop
|
||||||
if (check_screen 'desktop_package_tool_update_bz1314991', 1) {
|
if (check_screen 'desktop_package_tool_install', 1) {
|
||||||
record_soft_failure "RHBZ #1314991 (background PK operation interfered with update)";
|
#sleep 100;
|
||||||
assert_and_click 'desktop_package_tool_update_refresh';
|
|
||||||
$n = 1;
|
$n = 1;
|
||||||
}
|
}
|
||||||
last if (check_screen 'desktop_package_tool_update_apply', 120);
|
last if (assert_and_click 'desktop_package_tool_install', 120);
|
||||||
mouse_set 10, 10;
|
mouse_set 10, 10;
|
||||||
mouse_hide;
|
mouse_hide;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user